Skip to content

Commit 3d1cd6a

Browse files
committed
refine code by commment
1 parent 9d2df8a commit 3d1cd6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/optimizer/optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ def clear_grad(self, set_to_zero=True):
10471047
There are two method to clear grad: set_to_zero or delete grad.
10481048
10491049
Args:
1050-
set_to_zero (bool): If set grads to zero or not, default is True.
1050+
set_to_zero (bool, optional): If set grads to zero or not, default is True.
10511051
10521052
Returns:
10531053
None

0 commit comments

Comments
 (0)