未验证 提交 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
......@@ -69,10 +69,10 @@ class FakeQuanterWithAbsMaxObserver(QuanterFactory):
Examples:
.. 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.
先完成此消息的编辑!
想要评论请 注册