Skip to content

Commit

Permalink
fix noam decay example, test=develop,test=document_fix (PaddlePaddle#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tink2123 authored Feb 17, 2020
1 parent 9ed59da commit 3f0ca61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/fluid/layers/learning_rate_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit 3f0ca61

Please sign in to comment.