pub struct RawTensor {
pub name: String,
pub dtype: String,
pub shape: Vec<usize>,
pub bytes: Vec<u8>,
}Expand description
One tensor as stored in a safetensors file, under its canonical name.
Fields§
§name: String§dtype: Stringsafetensors dtype string: “BF16”, “F16” or “F32”.
shape: Vec<usize>§bytes: Vec<u8>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawTensor
impl RefUnwindSafe for RawTensor
impl Send for RawTensor
impl Sync for RawTensor
impl Unpin for RawTensor
impl UnsafeUnpin for RawTensor
impl UnwindSafe for RawTensor
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