mtl5.dtypes#

mtl5.dtypes(...)#

Element dtypes accepted by convert() and the mixed-precision operations.

This is the set convert() can TARGET, and callers rely on that – the test suite parametrizes over it and converts into every entry.

The narrow integer element types (i8, i16, u8) are deliberately NOT here. They are real element types with containers and a mixed.dot (accumulator=’i32’), but convert() cannot target them: it re-quantizes a float64 array, and rounding reals into an 8-bit integer is a quantization scheme – scale, zero point, rounding mode – rather than a cast. A naive version would silently clip everything outside [-128, 127]. Build them with NumPy and pass them in; mtl5.mixed.accumulators(‘i8’) answers for them.

Signatures:

dtypes() -> list[str]