未验证 提交 8e58fa57 编写于 作者: C Candy2Tang 提交者: GitHub

[xdoctest][task 123] Reformat example code with google style in...

[xdoctest][task 123] Reformat example code with google style in python/paddle/quantization/quanters/abs_max.py (#56234)
上级 5634b8f7
......@@ -67,12 +67,12 @@ class FakeQuanterWithAbsMaxObserver(QuanterFactory):
For details, please refer to :ref:`api_guide_Name`. Default is None.
Examples:
.. code-block:: python
.. code-block:: python
from paddle.quantization import QuantConfig
from paddle.quantization.quanters import FakeQuanterWithAbsMaxObserver
quanter = FakeQuanterWithAbsMaxObserver(moving_rate=0.99)
q_config = QuantConfig(activation=quanter, weight=quanter)
>>> from paddle.quantization import QuantConfig
>>> from paddle.quantization.quanters import FakeQuanterWithAbsMaxObserver
>>> quanter = FakeQuanterWithAbsMaxObserver(moving_rate=0.99)
>>> q_config = QuantConfig(activation=quanter, weight=quanter)
"""
def __init__(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册