@Namespace(value="c10") public static enum torch.Backend extends Enum<torch.Backend>
Enum Constant and Description |
---|
CPU |
CUDA |
FPGA |
HIP |
HPU |
IPU |
Lazy |
Meta |
Metal |
MkldnnCPU |
MPS |
MTIA |
NumOptions |
ORT |
PrivateUse1 |
QuantizedCPU |
QuantizedCUDA |
QuantizedPrivateUse1 |
QuantizedXPU |
SparseCPU |
SparseCsrCPU |
SparseCsrCUDA |
SparseCUDA |
SparseHIP |
SparsePrivateUse1 |
SparseVE |
SparseXPU |
Undefined |
VE |
Vulkan |
XLA |
XPU |
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
torch.Backend |
intern() |
String |
toString() |
static torch.Backend |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch.Backend[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch.Backend CPU
public static final torch.Backend CUDA
public static final torch.Backend HIP
public static final torch.Backend VE
public static final torch.Backend FPGA
public static final torch.Backend IPU
public static final torch.Backend XPU
public static final torch.Backend SparseCPU
public static final torch.Backend SparseCUDA
public static final torch.Backend SparseCsrCPU
public static final torch.Backend SparseCsrCUDA
public static final torch.Backend SparseHIP
public static final torch.Backend SparseVE
public static final torch.Backend SparseXPU
public static final torch.Backend SparsePrivateUse1
public static final torch.Backend ORT
public static final torch.Backend XLA
public static final torch.Backend Vulkan
public static final torch.Backend Metal
public static final torch.Backend Meta
public static final torch.Backend QuantizedCPU
public static final torch.Backend QuantizedCUDA
public static final torch.Backend QuantizedXPU
public static final torch.Backend QuantizedPrivateUse1
public static final torch.Backend Undefined
public static final torch.Backend MkldnnCPU
public static final torch.Backend MPS
public static final torch.Backend HPU
public static final torch.Backend Lazy
public static final torch.Backend MTIA
public static final torch.Backend PrivateUse1
public static final torch.Backend NumOptions
public static torch.Backend[] values()
for (torch.Backend c : torch.Backend.values()) System.out.println(c);
public static torch.Backend 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.Backend intern()
public String toString()
toString
in class Enum<torch.Backend>
Copyright © 2024. All rights reserved.