pub enum TensorDType {
F32,
F16,
Bf16,
}Expand description
Tensor scalar representation at the intervention boundary.
Variants§
F32
IEEE 754 binary32 values exposed directly to Rust.
F16
IEEE 754 binary16 native state, converted exactly at the adapter boundary.
Bf16
Brain floating-point native state, converted exactly at the adapter boundary.
Trait Implementations§
Source§impl Clone for TensorDType
impl Clone for TensorDType
impl Copy for TensorDType
Source§impl Debug for TensorDType
impl Debug for TensorDType
Source§impl<'de> Deserialize<'de> for TensorDType
impl<'de> Deserialize<'de> for TensorDType
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 TensorDType
Source§impl PartialEq for TensorDType
impl PartialEq for TensorDType
Source§impl Serialize for TensorDType
impl Serialize for TensorDType
impl StructuralPartialEq for TensorDType
Auto Trait Implementations§
impl Freeze for TensorDType
impl RefUnwindSafe for TensorDType
impl Send for TensorDType
impl Sync for TensorDType
impl Unpin for TensorDType
impl UnsafeUnpin for TensorDType
impl UnwindSafe for TensorDType
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