pub struct DecodedScales {
pub block: Vec<f32>,
pub global: Option<f32>,
}Expand description
Scales recovered from a quantized byte buffer.
Fields§
§block: Vec<f32>One scale per block, or a single entry for a per-tensor level.
global: Option<f32>The per-tensor scale, for a level that carries one.
Trait Implementations§
Source§impl Clone for DecodedScales
impl Clone for DecodedScales
Source§fn clone(&self) -> DecodedScales
fn clone(&self) -> DecodedScales
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodedScales
impl Debug for DecodedScales
Source§impl PartialEq for DecodedScales
impl PartialEq for DecodedScales
impl StructuralPartialEq for DecodedScales
Auto Trait Implementations§
impl Freeze for DecodedScales
impl RefUnwindSafe for DecodedScales
impl Send for DecodedScales
impl Sync for DecodedScales
impl Unpin for DecodedScales
impl UnsafeUnpin for DecodedScales
impl UnwindSafe for DecodedScales
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