Enum Constant and Description |
---|
FLOAT32
Code for dtype torch.float32.
|
FLOAT64
Code for dtype torch.float64.
|
INT32
Code for dtype torch.int32.
|
INT64
Code for dtype torch.int64.
|
INT8
Code for dtype torch.int8.
|
UINT8
Code for dtype torch.uint8.
|
Modifier and Type | Method and Description |
---|---|
static DType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DType UINT8
Tensor.dtype()
public static final DType INT8
Tensor.dtype()
public static final DType INT32
Tensor.dtype()
public static final DType FLOAT32
Tensor.dtype()
public static final DType INT64
Tensor.dtype()
public static final DType FLOAT64
Tensor.dtype()
public static DType[] values()
for (DType c : DType.values()) System.out.println(c);
public static DType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null