pub struct MinMaxCalibration {}Expand description
Computes the per-tensor quantization range mapping based on the min and max values.
Trait Implementations§
Source§impl Calibration for MinMaxCalibration
impl Calibration for MinMaxCalibration
Source§fn compute_range<B: Backend, const D: usize>(
&self,
tensor: &Tensor<B, D>,
) -> CalibrationRange<B>
fn compute_range<B: Backend, const D: usize>( &self, tensor: &Tensor<B, D>, ) -> CalibrationRange<B>
Compute the input tensor range.
Auto Trait Implementations§
impl Freeze for MinMaxCalibration
impl RefUnwindSafe for MinMaxCalibration
impl Send for MinMaxCalibration
impl Sync for MinMaxCalibration
impl Unpin for MinMaxCalibration
impl UnwindSafe for MinMaxCalibration
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