Trait dfdx::tensor::NumpyDtype
source · pub trait NumpyDtype: Sized {
const NUMPY_DTYPE_STR: &'static str;
// Required methods
fn read_endian<R: Read>(r: &mut R, endian: Endian) -> Result<Self>;
fn write_endian<W: Write>(&self, w: &mut W, endian: Endian) -> Result<()>;
}
Expand description
Represents the NumpyDtype as a const str value.
Values should match up to the numpy documentation for dtypes.
For example an f32’s dtype is “f4”.