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