From 646665346ee30d164bb93237b7f44e1d9358b026 Mon Sep 17 00:00:00 2001 From: Chen Long <1300851984@qq.com> Date: Tue, 8 Jun 2021 08:53:00 +0800 Subject: [PATCH] fix code style (#33395) --- python/paddle/framework/framework.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/framework/framework.py b/python/paddle/framework/framework.py index 93056a60c37..e9d690c28d6 100644 --- a/python/paddle/framework/framework.py +++ b/python/paddle/framework/framework.py @@ -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 -- GitLab