megengine.core.tensor.dtype.quint8

quint8(scale, zero_point)[源代码]

Consturct a quantized unsigned int8 data type with scale (float) and zero_point (uint8). The real value represented by a quint8 data type is float_val = scale * (uint8_val - zero_point)