DType enum
Codes representing tensor data types.
Values
- uint8 → const DType
-
Code for dtype torch.uint8.
const DType(1) - int8 → const DType
-
Code for dtype torch.int8.
const DType(2) - int32 → const DType
-
Code for dtype torch.int32.
const DType(3) - float32 → const DType
-
Code for dtype torch.float32.
const DType(4) - int64 → const DType
-
Code for dtype torch.int64.
const DType(5) - float64 → const DType
-
Code for dtype torch.float64.
const DType(6)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- jniCode → int
-
Code for dtype.
final
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJniCode(
int jniCode) → DType