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

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

[xdoctest][task 120] Reformat example code with google style in python/paddle/quantization/observers/abs_max.py (#56231)
Co-authored-by: NNyakku Shigure <sigure.qaq@gmail.com>
上级 4e5ae23e
......@@ -30,12 +30,12 @@ class AbsmaxObserver(ObserverFactory):
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__(self, quant_bits=8):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册