pub struct QuantizedAffine {
pub qvalues: Vec<i8>,
pub params: Vec<AffineParams>,
pub groups: Vec<u32>,
}Expand description
A tensor quantized with one AffineParams per group.
Fields§
§qvalues: Vec<i8>One quantized value per input element, in the same (row-major) order as the input.
params: Vec<AffineParams>One AffineParams per group.
groups: Vec<u32>qvalues[i]’s group is groups[i], i.e. params[groups[i]] quantized it.
Trait Implementations§
Source§impl Clone for QuantizedAffine
impl Clone for QuantizedAffine
Source§fn clone(&self) -> QuantizedAffine
fn clone(&self) -> QuantizedAffine
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 moreAuto Trait Implementations§
impl Freeze for QuantizedAffine
impl RefUnwindSafe for QuantizedAffine
impl Send for QuantizedAffine
impl Sync for QuantizedAffine
impl Unpin for QuantizedAffine
impl UnsafeUnpin for QuantizedAffine
impl UnwindSafe for QuantizedAffine
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