Trait QTensorPrimitive
pub trait QTensorPrimitive {
// Required method
fn scheme(&self) -> &QuantScheme;
// Provided methods
fn acc_precision(&self) -> QuantAcc { ... }
fn propagation(&self) -> QuantPropagation { ... }
fn default_scheme() -> QuantScheme { ... }
}Expand description
Quantized tensor primitive.
Required Methods§
fn scheme(&self) -> &QuantScheme
fn scheme(&self) -> &QuantScheme
Returns the quantization settings for the given tensor.
Provided Methods§
fn acc_precision(&self) -> QuantAcc
fn acc_precision(&self) -> QuantAcc
The precision used for the accumulation in various kernels.
fn propagation(&self) -> QuantPropagation
fn propagation(&self) -> QuantPropagation
How quantization is propagated during computation.
fn default_scheme() -> QuantScheme
fn default_scheme() -> QuantScheme
Returns the default tensor quantization scheme.
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.