megengine.quantization.QParams

class QParams(mode, dtype_meta, scale, zero_point)[源代码]

To standardize FakeQuant, Observer and Tensor’s qparams format. If custom qparams is needed, inherit this class and add custom __slots__.

属性。

mode

dtype_meta

scale

zero_point

方法

update(qparams)