pub enum Dtype {
Show 13 variants
Bool,
U8,
I8,
U16,
I16,
I32,
U64,
F64,
U32,
I64,
F32,
F16,
Bf16,
}Expand description
Scalar types supported by physical tensor views.
Variants§
Implementations§
Trait Implementations§
impl Copy for Dtype
Source§impl<'de> Deserialize<'de> for Dtype
impl<'de> Deserialize<'de> for Dtype
Source§fn 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 Dtype
impl StructuralPartialEq for Dtype
Auto Trait Implementations§
impl Freeze for Dtype
impl RefUnwindSafe for Dtype
impl Send for Dtype
impl Sync for Dtype
impl Unpin for Dtype
impl UnsafeUnpin for Dtype
impl UnwindSafe for Dtype
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