pub enum DataType {
Float32,
Int32,
UInt8,
Int16,
Float64,
}Expand description
Data type for tensor elements.
Variants§
Float32
32-bit floating point
Int32
32-bit signed integer
UInt8
8-bit unsigned integer
Int16
16-bit signed integer
Float64
64-bit floating point
Implementations§
Trait Implementations§
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more