pub struct StTensor {
pub shape: Vec<usize>,
pub data: Vec<f32>,
}Expand description
One tensor from a .safetensors file, dequantized to f32.
Fields§
§shape: Vec<usize>§data: Vec<f32>Auto Trait Implementations§
impl Freeze for StTensor
impl RefUnwindSafe for StTensor
impl Send for StTensor
impl Sync for StTensor
impl Unpin for StTensor
impl UnsafeUnpin for StTensor
impl UnwindSafe for StTensor
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