Skip to content

Commit 5bd5d50

Browse files
committed
add EN doc
1 parent 1af0ccd commit 5bd5d50

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

python/paddle/optimizer/optimizer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ class Optimizer:
161161
For more information, please refer to :ref:`api_guide_Name`.
162162
The default value is None.
163163
164+
Keyword Arguments:
165+
differentiable (bool, optional): Whether autograd should occur through the optimizer step in training. Otherwise, the step() function runs in a paddle.autograd.no_grad() context. The default value is False.
166+
164167
Returns:
165168
Base class for optimizer.
166169

python/paddle/optimizer/sgd.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ class SGD(Optimizer):
6767
to set this property. For more information, please refer to
6868
:ref:`api_guide_Name` .
6969
70+
Keyword Arguments:
71+
differentiable (bool, optional): Whether autograd should occur through the optimizer step in training. Otherwise, the step() function runs in a paddle.autograd.no_grad() context. The default value is False.
72+
7073
Examples:
7174
.. code-block:: pycon
7275

0 commit comments

Comments
 (0)