fix noam decay example, test=develop,test=document_fix (#22557)

revert-22710-feature/integrated_ps_api
xiaoting 5 years ago committed by GitHub
parent 9ed59da443
commit 3f0ca61a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,7 +56,7 @@ def noam_decay(d_model, warmup_steps):
.. code-block:: python
import padde.fluid as fluid
import paddle.fluid as fluid
import numpy as np
# set hyper parameters
d_model = 2
@ -80,7 +80,7 @@ def noam_decay(d_model, warmup_steps):
Examples:
.. 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(

Loading…
Cancel
Save