@Namespace(value="c10") public static enum torch.BackendComponent extends Enum<torch.BackendComponent>
Enum Constant and Description |
---|
CPUBit |
CUDABit |
EndOfBackendKeys |
HIPBit |
HPUBit |
InvalidBit |
IPUBit |
LazyBit |
MetaBit |
MPSBit |
MTIABit |
PrivateUse1Bit |
PrivateUse2Bit |
PrivateUse3Bit |
VEBit |
XLABit |
XPUBit |
Modifier and Type | Field and Description |
---|---|
byte |
value |
Modifier and Type | Method and Description |
---|---|
torch.BackendComponent |
intern() |
String |
toString() |
static torch.BackendComponent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch.BackendComponent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch.BackendComponent InvalidBit
public static final torch.BackendComponent CPUBit
public static final torch.BackendComponent CUDABit
public static final torch.BackendComponent HIPBit
public static final torch.BackendComponent XLABit
public static final torch.BackendComponent MPSBit
public static final torch.BackendComponent IPUBit
public static final torch.BackendComponent XPUBit
public static final torch.BackendComponent HPUBit
public static final torch.BackendComponent VEBit
public static final torch.BackendComponent LazyBit
public static final torch.BackendComponent MTIABit
public static final torch.BackendComponent PrivateUse1Bit
public static final torch.BackendComponent PrivateUse2Bit
public static final torch.BackendComponent PrivateUse3Bit
public static final torch.BackendComponent MetaBit
public static final torch.BackendComponent EndOfBackendKeys
public static torch.BackendComponent[] values()
for (torch.BackendComponent c : torch.BackendComponent.values()) System.out.println(c);
public static torch.BackendComponent 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.BackendComponent intern()
public String toString()
toString
in class Enum<torch.BackendComponent>
Copyright © 2024. All rights reserved.