@Namespace(value="c10") public static enum torch.Layout extends Enum<torch.Layout>
Enum Constant and Description |
---|
Jagged |
Mkldnn |
NumOptions |
Sparse |
SparseBsc |
SparseBsr |
SparseCsc |
SparseCsr |
Strided |
Modifier and Type | Field and Description |
---|---|
byte |
value |
Modifier and Type | Method and Description |
---|---|
torch.Layout |
intern() |
String |
toString() |
static torch.Layout |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch.Layout[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch.Layout Strided
public static final torch.Layout Sparse
public static final torch.Layout SparseCsr
public static final torch.Layout Mkldnn
public static final torch.Layout SparseCsc
public static final torch.Layout SparseBsr
public static final torch.Layout SparseBsc
public static final torch.Layout Jagged
public static final torch.Layout NumOptions
public static torch.Layout[] values()
for (torch.Layout c : torch.Layout.values()) System.out.println(c);
public static torch.Layout valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic torch.Layout intern()
public String toString()
toString
in class Enum<torch.Layout>
Copyright © 2024. All rights reserved.