enum

Torch::Kind

Inherits Enum < Comparable < Value < Object

Values must match at::ScalarType.

Constants

Uint8 = 0
Int8 = 1
Int16 = 2
Int32 = 3
Int64 = 4
Float16 = 5
Float32 = 6
Float64 = 7
Complex32 = 8
Complex64 = 9
Complex128 = 10
Bool = 11
BFloat16 = 12

Constructors

of(type : T.class) : self forall T
Source

Instance methods

b_float16?

Returns true if this enum value equals BFloat16

Source
bool?

Returns true if this enum value equals Bool

Source
bytesize
Source
complex128?

Returns true if this enum value equals Complex128

Source
complex32?

Returns true if this enum value equals Complex32

Source
complex64?

Returns true if this enum value equals Complex64

Source
float16?

Returns true if this enum value equals Float16

Source
float32?

Returns true if this enum value equals Float32

Source
float64?

Returns true if this enum value equals Float64

Source
int16?

Returns true if this enum value equals Int16

Source
int32?

Returns true if this enum value equals Int32

Source
int64?

Returns true if this enum value equals Int64

Source
int8?

Returns true if this enum value equals Int8

Source
uint8?

Returns true if this enum value equals Uint8

Source