pub struct Tensor {
pub shape: Vec<usize>,
pub data: Vec<f32>,
pub packed: Vec<f32>,
pub quant: Option<QMatrix>,
}Expand description
A weight converted to f32.
Fields§
§shape: Vec<usize>Shape.
data: Vec<f32>Row major values, empty for a weight only GEMMs read.
packed: Vec<f32>The values as gemm::pack lays them out, for a weight FP32 GEMMs read, and empty
otherwise.
quant: Option<QMatrix>The values rounded to INT8, for a weight INT8 GEMMs read.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tensor
impl RefUnwindSafe for Tensor
impl Send for Tensor
impl Sync for Tensor
impl Unpin for Tensor
impl UnsafeUnpin for Tensor
impl UnwindSafe for Tensor
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