Trait MatmulPrecision

Source
pub trait MatmulPrecision:
    Send
    + Sync
    + Copy
    + 'static {
    type EI: Numeric;
    type ES: Numeric;
    type EA: Numeric;
    type EO: Numeric;

    const QUANTIZED: bool;
}
Expand description

Matrix multiplication precisions.

Required Associated Constants§

Required Associated Types§

Source

type EI: Numeric

Element type of each input tensors of the kernel.

Source

type ES: Numeric

Element type for the shared memories used to read inputs.

Source

type EA: Numeric

Element type for the shared memories or fragments used to accumulate smaller matmul results before writing to the output tensor.

Source

type EO: Numeric

Element type of the output tensor of the kernel.

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.

Implementations on Foreign Types§

Source§

impl MatmulPrecision for f32

Source§

impl MatmulPrecision for f64

Source§

impl MatmulPrecision for flex32

Source§

impl MatmulPrecision for SymQ8

Source§

impl MatmulPrecision for bf16

Source§

impl MatmulPrecision for f16

Source§

impl<EI: Numeric, ES: Numeric, EA: Numeric, EO: Numeric> MatmulPrecision for (EI, ES, EA, EO, Quantized)

Source§

const QUANTIZED: bool = true

Source§

type EI = EI

Source§

type ES = ES

Source§

type EA = EA

Source§

type EO = EO

Source§

impl<EI: Numeric, ES: Numeric, EA: Numeric, EO: Numeric> MatmulPrecision for (EI, ES, EA, EO)

Source§

const QUANTIZED: bool = false

Source§

type EI = EI

Source§

type ES = ES

Source§

type EA = EA

Source§

type EO = EO

Implementors§

Source§

impl<MP: MatmulPrecision, ES: Numeric> MatmulPrecision for ReplaceES<MP, ES>

Source§

const QUANTIZED: bool = MP::QUANTIZED

Source§

type EI = <MP as MatmulPrecision>::EI

Source§

type ES = ES

Source§

type EA = <MP as MatmulPrecision>::EA

Source§

type EO = <MP as MatmulPrecision>::EO