megengine.core.tensor.dtype.qint8

qint8(scale)[源代码]

Construct a quantized int8 data type with scale (float). The real value represented by a qint8 data type is float_val = scale * int8_val