pub struct PerTensorQuantParams {
pub multiplier: i32,
pub shift: i32,
}Expand description
Per-tensor quantization parameters.
Fields§
§multiplier: i32Requantization multiplier (Q31).
shift: i32Requantization shift.
Implementations§
Trait Implementations§
Source§impl Clone for PerTensorQuantParams
impl Clone for PerTensorQuantParams
Source§fn clone(&self) -> PerTensorQuantParams
fn clone(&self) -> PerTensorQuantParams
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 moreimpl Copy for PerTensorQuantParams
Source§impl Debug for PerTensorQuantParams
impl Debug for PerTensorQuantParams
impl Eq for PerTensorQuantParams
Source§impl PartialEq for PerTensorQuantParams
impl PartialEq for PerTensorQuantParams
impl StructuralPartialEq for PerTensorQuantParams
Auto Trait Implementations§
impl Freeze for PerTensorQuantParams
impl RefUnwindSafe for PerTensorQuantParams
impl Send for PerTensorQuantParams
impl Sync for PerTensorQuantParams
impl Unpin for PerTensorQuantParams
impl UnsafeUnpin for PerTensorQuantParams
impl UnwindSafe for PerTensorQuantParams
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