未验证 提交 64666534 编写于 作者: C Chen Long 提交者: GitHub

fix code style (#33395)

上级 94e83606
......@@ -87,8 +87,6 @@ def get_default_dtype():
@contextmanager
def set_grad_enabled(mode):
"""
:api_attr: imperative
Create a context which enables or disables dygraph gradient calculation.
Args:
......@@ -96,6 +94,7 @@ def set_grad_enabled(mode):
Examples:
.. code-block:: python
import paddle
x = paddle.ones([3, 2])
x.stop_gradient = False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册