@Namespace(value="torch::profiler::impl") public static enum torch.ProfilerState extends Enum<torch.ProfilerState>
Enum Constant and Description |
---|
CPU |
CUDA |
Disabled |
ITT |
KINETO |
KINETO_GPU_FALLBACK |
KINETO_ONDEMAND |
KINETO_PRIVATEUSE1_FALLBACK |
NUM_PROFILER_STATES |
NVTX |
PRIVATEUSE1 |
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
torch.ProfilerState |
intern() |
String |
toString() |
static torch.ProfilerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch.ProfilerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch.ProfilerState Disabled
public static final torch.ProfilerState CPU
public static final torch.ProfilerState CUDA
public static final torch.ProfilerState NVTX
public static final torch.ProfilerState ITT
public static final torch.ProfilerState PRIVATEUSE1
public static final torch.ProfilerState KINETO
public static final torch.ProfilerState KINETO_GPU_FALLBACK
public static final torch.ProfilerState KINETO_PRIVATEUSE1_FALLBACK
public static final torch.ProfilerState KINETO_ONDEMAND
public static final torch.ProfilerState NUM_PROFILER_STATES
public static torch.ProfilerState[] values()
for (torch.ProfilerState c : torch.ProfilerState.values()) System.out.println(c);
public static torch.ProfilerState 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.ProfilerState intern()
public String toString()
toString
in class Enum<torch.ProfilerState>
Copyright © 2024. All rights reserved.