未验证 提交 ffb0a840 编写于 作者: S Sijun He 提交者: GitHub

Update pact.py (#1771)

上级 1432844d
...@@ -38,7 +38,7 @@ class PACTQuanter(QuanterFactory): ...@@ -38,7 +38,7 @@ class PACTQuanter(QuanterFactory):
Examples: Examples:
.. code-block:: python .. code-block:: python
from paddle.quantization import QuantConfig from paddle.quantization import QuantConfig
from paddle.quantization.quanters import PACTQuanter from paddleslim.quant.quanters import PACTQuanter
from paddle.quantization.quanters.abs_max import FakeQuanterWithAbsMaxObserverLayer from paddle.quantization.quanters.abs_max import FakeQuanterWithAbsMaxObserverLayer
pact_quanter = PACTQuanter(quanter=FakeQuanterWithAbsMaxObserverLayer) pact_quanter = PACTQuanter(quanter=FakeQuanterWithAbsMaxObserverLayer)
q_config = QuantConfig(activation=pact_quanter, weight=pact_quanter) q_config = QuantConfig(activation=pact_quanter, weight=pact_quanter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册