MinMaxObserver# class MinMaxObserver(mode=QuantMode.SYMMERTIC, eps=0.00001, dtype='qint8', **kwargs)[源代码]# 一个通过记录输入 Tensor 的滑动最小值、最大值来计算 scale 的 Observer。 参数: mode (QuantMode) – 量化模式 eps (float) – 最大值的初始值,防止除 0 错误的发生。 dtype (Union[str, QuantDtypeMeta]) – 字符串,表明按何种dtype来收集scale和zero_point。