pub struct Int8Factors { /* private fields */ }Expand description
Per-row affine reconstruction factors for signed-byte scan rows.
Implementations§
Source§impl Int8Factors
impl Int8Factors
Sourcepub fn new(scale: f32, offset: f32) -> Result<Self, Int8FactorsError>
pub fn new(scale: f32, offset: f32) -> Result<Self, Int8FactorsError>
Constructs validated affine factors from crate::quant::quantize_int8.
§Errors
Returns Int8FactorsError for a negative or non-finite scale or a
non-finite offset.
Trait Implementations§
Source§impl Clone for Int8Factors
impl Clone for Int8Factors
impl Copy for Int8Factors
Source§impl Debug for Int8Factors
impl Debug for Int8Factors
Source§impl PartialEq for Int8Factors
impl PartialEq for Int8Factors
impl StructuralPartialEq for Int8Factors
Auto Trait Implementations§
impl Freeze for Int8Factors
impl RefUnwindSafe for Int8Factors
impl Send for Int8Factors
impl Sync for Int8Factors
impl Unpin for Int8Factors
impl UnsafeUnpin for Int8Factors
impl UnwindSafe for Int8Factors
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