pub enum ValueType {
Show 14 variants ValueU8, ValueU16, ValueU32, ValueU64, ValueU128, ValueS8, ValueS16, ValueS32, ValueS64, ValueS128, ValueF16, ValueF32, ValueF64, ValueF128,
}
Expand description

Value of a data element in a tensor

Variants

ValueU8

Unsigned 8-bit data (0x00) (b0000 0000) n(0)

ValueU16

Unsigned 16-bit data (0x01) (b0000 0001) n(1)

ValueU32

Unsigned 32-bit data (0x02) (b0000 0010) n(2)

ValueU64

Unsigned 64-bit data (0x03) (b0000 0011) n(3)

ValueU128

Unsigned 128-bit data (0x04) (b0000 0100) n(4)

ValueS8

Signed 8-bit data (0x40) (b0100 0000) n(64)

ValueS16

Signed 16-bit data (0x41) (b0100 0001) n(65)

ValueS32

Signed 32-bit data (0x42) (b0100 0010) n(66)

ValueS64

Signed 64-bit data (0x43) (b0100 0011) n(67)

ValueS128

Signed 128-bit data (0x44) (b0100 0100) n(68)

ValueF16

16-bit IEEE Float (0x81) (b1000 0001) n(129)

ValueF32

32-bit IEEE Float (0x82) (b1000 0010) n(130)

ValueF64

64-bit IEEE Float (0x83) (b1000 0011) n(131)

ValueF128

128-bit IEEE Float (0x84) (b1000 0100) n(132)

Implementations

Return number of bytes per datum

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more