Trait burn_tensor::quantization::QTensorPrimitive

source ·
pub trait QTensorPrimitive {
    // Required methods
    fn scheme(&self) -> &QuantizationScheme;
    fn strategy(&self) -> QuantizationStrategy;
}
Expand description

Quantized tensor primitive.

Required Methods§

source

fn scheme(&self) -> &QuantizationScheme

Returns the quantization scheme for the given tensor.

source

fn strategy(&self) -> QuantizationStrategy

Returns the quantization strategy for the given tensor.

§Remarks

Retrieving the quantization strategy with its corresponding parameters might require synchronization on the backend.

Implementors§