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
sourceimpl ValueType
impl ValueType
sourcepub fn datum_size(&self) -> usize
pub fn datum_size(&self) -> usize
Return number of bytes per datum
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ValueType
impl<'de> Deserialize<'de> for ValueType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ValueType
impl StructuralEq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more