@Namespace(value="c10") public static enum torch.MemoryFormat extends Enum<torch.MemoryFormat>
| Enum Constant and Description |
|---|
ChannelsLast |
ChannelsLast3d |
Contiguous |
NumOptions |
Preserve |
| Modifier and Type | Field and Description |
|---|---|
byte |
value |
| Modifier and Type | Method and Description |
|---|---|
torch.MemoryFormat |
intern() |
String |
toString() |
static torch.MemoryFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch.MemoryFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch.MemoryFormat Contiguous
public static final torch.MemoryFormat Preserve
public static final torch.MemoryFormat ChannelsLast
public static final torch.MemoryFormat ChannelsLast3d
public static final torch.MemoryFormat NumOptions
public static torch.MemoryFormat[] values()
for (torch.MemoryFormat c : torch.MemoryFormat.values()) System.out.println(c);
public static torch.MemoryFormat 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.MemoryFormat intern()
public String toString()
toString in class Enum<torch.MemoryFormat>Copyright © 2024. All rights reserved.