Skip to content

Commit 49e5add

Browse files
[Docathon][Fix note No.17-18] (#7161)
1 parent 75b36b1 commit 49e5add

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

docs/api/paddle/optimizer/LBFGS_cn.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LBFGS 具体原理参考书籍 Jorge Nocedal, Stephen J. Wright, Numerical Optim
1919

2020

2121
.. note::
22-
当前仅支持动态图模式下使用。
22+
当前仅支持动态图模式下使用。
2323

2424

2525
参数
@@ -55,8 +55,7 @@ step(closure)
5555
'''''''''
5656

5757
.. note::
58-
59-
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
58+
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
6059

6160
执行一次 LBFGS 优化器(包含若干 iter)并进行参数更新。
6261

@@ -77,8 +76,7 @@ state_dict()
7776
'''''''''
7877

7978
.. note::
80-
81-
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
79+
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
8280

8381
将优化器当前参数状态保存到字典。
8482

docs/api/paddle/optimizer/Lamb_cn.rst

+5-9
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ step()
5353
'''''''''
5454

5555
.. note::
56-
57-
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
56+
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
5857

5958
执行一次优化器并进行参数更新。
6059

@@ -90,7 +89,7 @@ clear_grad()
9089
'''''''''
9190

9291
.. note::
93-
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
92+
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
9493

9594

9695
清除需要优化的参数的梯度。
@@ -103,8 +102,7 @@ set_lr(value)
103102
'''''''''
104103

105104
.. note::
106-
107-
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
105+
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
108106

109107
手动设置当前 ``optimizer`` 的学习率。当使用_LRScheduler 时,无法使用该 API 手动设置学习率,因为这将导致冲突。
110108

@@ -124,8 +122,7 @@ set_lr_scheduler(scheduler)
124122
'''''''''
125123

126124
.. note::
127-
128-
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
125+
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
129126

130127
手动设置当前 ``optimizer`` 的学习率为 LRScheduler 类。
131128

@@ -145,8 +142,7 @@ get_lr()
145142
'''''''''
146143

147144
.. note::
148-
149-
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
145+
该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。
150146

151147
获取当前步骤的学习率。当不使用_LRScheduler 时,每次调用的返回值都相同,否则返回当前步骤的学习率。
152148

0 commit comments

Comments
 (0)