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

fix code style (#33395)

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