Trait Calibration
pub trait Calibration {
// Required method
fn compute_range<B, const D: usize>(
&self,
tensor: &Tensor<B, D>,
) -> CalibrationRange<B>
where B: Backend;
}
Expand description
Calibration method used to compute the quantization range mapping.
Required Methods§
fn compute_range<B, const D: usize>(
&self,
tensor: &Tensor<B, D>,
) -> CalibrationRange<B>where
B: Backend,
fn compute_range<B, const D: usize>(
&self,
tensor: &Tensor<B, D>,
) -> CalibrationRange<B>where
B: Backend,
Compute the input tensor range.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.