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§
Sourcefn scheme(&self) -> &QuantScheme
fn scheme(&self) -> &QuantScheme
Returns the quantization settings for the given tensor.
Provided Methods§
Sourcefn acc_precision(&self) -> QuantAcc
fn acc_precision(&self) -> QuantAcc
The precision used for the accumulation in various kernels.
Sourcefn propagation(&self) -> QuantPropagation
fn propagation(&self) -> QuantPropagation
How quantization is propagated during computation.
Sourcefn 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".