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