@Namespace(value="c10::cuda::CUDACachingAllocator") public static enum torch_cuda.StatType extends Enum<torch_cuda.StatType>
| Enum Constant and Description |
|---|
AGGREGATE |
LARGE_POOL |
NUM_TYPES |
SMALL_POOL |
| Modifier and Type | Field and Description |
|---|---|
long |
value |
| Modifier and Type | Method and Description |
|---|---|
torch_cuda.StatType |
intern() |
String |
toString() |
static torch_cuda.StatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch_cuda.StatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch_cuda.StatType AGGREGATE
public static final torch_cuda.StatType SMALL_POOL
public static final torch_cuda.StatType LARGE_POOL
public static final torch_cuda.StatType NUM_TYPES
public static torch_cuda.StatType[] values()
for (torch_cuda.StatType c : torch_cuda.StatType.values()) System.out.println(c);
public static torch_cuda.StatType 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_cuda.StatType intern()
public String toString()
toString in class Enum<torch_cuda.StatType>Copyright © 2024. All rights reserved.