quantax.utils.is_low_precision#
- quantax.utils.is_low_precision(dtype: str | type[Any] | dtype | SupportsDType) bool#
Whether a forward pass with parameters in
dtyperuns in reduced precision, i.e. below single precision, or in single precision with reduced-precision matmuls like TF32. The latter is the default on GPU unless the matmul precision is set to full precision, e.g. “highest”, “float32” or “F32_F32_F32”, while CPU computes single-precision matmuls and convolutions in full precision regardless of the precision setting.