Skip to main content

QTensorPrimitive

Trait QTensorPrimitive 

Source
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§

Source

fn scheme(&self) -> &QuantScheme

Returns the quantization settings for the given tensor.

Provided Methods§

Source

fn acc_precision(&self) -> QuantAcc

The precision used for the accumulation in various kernels.

Source

fn propagation(&self) -> QuantPropagation

How quantization is propagated during computation.

Source

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".

Implementors§