pub struct GgufRawTensor {
pub data: Vec<u8>,
pub shape: Vec<usize>,
pub dtype: u32,
}Expand description
Raw tensor data with quantization preserved
Fields§
§data: Vec<u8>Raw bytes (Q4K/Q6K super-blocks, or F32/F16 data)
shape: Vec<usize>Tensor shape
dtype: u32GGML dtype: 0=F32, 1=F16, 2=Q4_0, 3=Q4_1, 8=Q8_0, 10=Q2_K, 11=Q3_K, 12=Q4_K, 13=Q5_K, 14=Q6_K
Trait Implementations§
Source§impl Clone for GgufRawTensor
impl Clone for GgufRawTensor
Source§fn clone(&self) -> GgufRawTensor
fn clone(&self) -> GgufRawTensor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GgufRawTensor
impl RefUnwindSafe for GgufRawTensor
impl Send for GgufRawTensor
impl Sync for GgufRawTensor
impl Unpin for GgufRawTensor
impl UnwindSafe for GgufRawTensor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more