megengine.core.tensor.dtype.qint4

qint4(scale)[源代码]

Construct a quantized int4 data type with scale (float). The real value represented by a qint4 data type is float_val = scale * int4_val