From 0b0251ffc55173e2b69eb11534d96864d240cd58 Mon Sep 17 00:00:00 2001 From: Yu Cui Date: Sun, 30 Mar 2025 20:41:33 +0800 Subject: [PATCH 1/4] [Docathon][Fix note No.16] --- docs/api/paddle/optimizer/Adam_cn.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api/paddle/optimizer/Adam_cn.rst b/docs/api/paddle/optimizer/Adam_cn.rst index 3e60664e810..8a24ba4734f 100755 --- a/docs/api/paddle/optimizer/Adam_cn.rst +++ b/docs/api/paddle/optimizer/Adam_cn.rst @@ -60,7 +60,7 @@ step() ''''''''' .. note:: - 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 + 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 执行一次优化器并进行参数更新。 @@ -115,7 +115,7 @@ clear_grad() ''''''''' .. note:: - 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 + 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 清除需要优化的参数的梯度。 @@ -129,7 +129,7 @@ set_lr(value) .. note:: -该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 + 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 手动设置当前 ``optimizer`` 的学习率。当使用_LRScheduler 时,无法使用该 API 手动设置学习率,因为这将导致冲突。 @@ -150,7 +150,7 @@ set_lr_scheduler(scheduler) .. note:: -该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 + 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 手动设置当前 ``optimizer`` 的学习率为 LRScheduler 类。 @@ -170,7 +170,7 @@ get_lr() ''''''''' .. note:: -该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 + 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 获取当前步骤的学习率。当不使用_LRScheduler 时,每次调用的返回值都相同,否则返回当前步骤的学习率。 From 2bc4aaf579b0d86e9d1febd871a9ddbdef0e47d2 Mon Sep 17 00:00:00 2001 From: Yu Cui Date: Mon, 31 Mar 2025 15:00:54 +0800 Subject: [PATCH 2/4] Update Adam_cn.rst From ce2392a7df419c804c7a2cd6c51fc9f29fbc778f Mon Sep 17 00:00:00 2001 From: Yu Cui Date: Mon, 31 Mar 2025 15:01:22 +0800 Subject: [PATCH 3/4] Update Adam_cn.rst --- docs/api/paddle/optimizer/Adam_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/paddle/optimizer/Adam_cn.rst b/docs/api/paddle/optimizer/Adam_cn.rst index 8a24ba4734f..695c765b2ba 100755 --- a/docs/api/paddle/optimizer/Adam_cn.rst +++ b/docs/api/paddle/optimizer/Adam_cn.rst @@ -60,7 +60,7 @@ step() ''''''''' .. note:: - 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 + 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 执行一次优化器并进行参数更新。 From 8a222505c229a1b719c0bd468a1303cf91dc6c5e Mon Sep 17 00:00:00 2001 From: Yu Cui Date: Mon, 31 Mar 2025 15:03:43 +0800 Subject: [PATCH 4/4] Update Adam_cn.rst --- docs/api/paddle/optimizer/Adam_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/paddle/optimizer/Adam_cn.rst b/docs/api/paddle/optimizer/Adam_cn.rst index 695c765b2ba..8a24ba4734f 100755 --- a/docs/api/paddle/optimizer/Adam_cn.rst +++ b/docs/api/paddle/optimizer/Adam_cn.rst @@ -60,7 +60,7 @@ step() ''''''''' .. note:: - 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 + 该 API 只在 `Dygraph <../../user_guides/howto/dygraph/DyGraph.html>`_ 模式下生效。 执行一次优化器并进行参数更新。