未验证 提交 cf820121 编写于 作者: X xiaoting 提交者: GitHub

fix noam_decay example (#1763)

上级 ab4d15c1
......@@ -11,7 +11,7 @@ noam衰减的numpy实现如下:
.. code-block:: python
import padde.fluid as fluid
import paddle.fluid as fluid
import numpy as np
# 设置超参数
d_model = 2
......@@ -36,7 +36,7 @@ noam衰减的numpy实现如下:
.. code-block:: python
import padde.fluid as fluid
import paddle.fluid as fluid
warmup_steps = 100
learning_rate = 0.01
lr = fluid.layers.learning_rate_scheduler.noam_decay(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册