@Namespace(value="c10") public static enum torch.DeviceType extends Enum<torch.DeviceType>
Enum Constant and Description |
---|
COMPILE_TIME_MAX_DEVICE_TYPES |
CPU |
CUDA |
FPGA |
HIP |
HPU |
IDEEP |
IPU |
Lazy |
Meta |
Metal |
MKLDNN |
MPS |
MTIA |
OPENCL |
OPENGL |
ORT |
PrivateUse1 |
VE |
Vulkan |
XLA |
XPU |
Modifier and Type | Field and Description |
---|---|
byte |
value |
Modifier and Type | Method and Description |
---|---|
torch.DeviceType |
intern() |
String |
toString() |
static torch.DeviceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch.DeviceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch.DeviceType CPU
public static final torch.DeviceType CUDA
public static final torch.DeviceType MKLDNN
public static final torch.DeviceType OPENGL
public static final torch.DeviceType OPENCL
public static final torch.DeviceType IDEEP
public static final torch.DeviceType HIP
public static final torch.DeviceType FPGA
public static final torch.DeviceType ORT
public static final torch.DeviceType XLA
public static final torch.DeviceType Vulkan
public static final torch.DeviceType Metal
public static final torch.DeviceType XPU
public static final torch.DeviceType MPS
public static final torch.DeviceType Meta
public static final torch.DeviceType HPU
public static final torch.DeviceType VE
public static final torch.DeviceType Lazy
public static final torch.DeviceType IPU
public static final torch.DeviceType MTIA
public static final torch.DeviceType PrivateUse1
public static final torch.DeviceType COMPILE_TIME_MAX_DEVICE_TYPES
public static torch.DeviceType[] values()
for (torch.DeviceType c : torch.DeviceType.values()) System.out.println(c);
public static torch.DeviceType 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.DeviceType intern()
public String toString()
toString
in class Enum<torch.DeviceType>
Copyright © 2024. All rights reserved.