枚举常量和描述 |
---|
FLOAT32
dtype torch.float32 的代码。
|
FLOAT64
dtype torch.float64 的代码。
|
INT32
dtype torch.int32 的代码。
|
INT64
dtype torch.int64 的代码。
|
INT8
dtype torch.int8 的代码。
|
UINT8
dtype torch.uint8 的代码。
|
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
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果此枚举类型没有具有指定名称的常量java.lang.NullPointerException
- 如果参数为 null