From 3f0ca61a820b8f2ae0c210b2e31e75bf24d9bd38 Mon Sep 17 00:00:00 2001 From: xiaoting <31891223+tink2123@users.noreply.github.com> Date: Mon, 17 Feb 2020 09:35:33 +0800 Subject: [PATCH] fix noam decay example, test=develop,test=document_fix (#22557) --- python/paddle/fluid/layers/learning_rate_scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/layers/learning_rate_scheduler.py b/python/paddle/fluid/layers/learning_rate_scheduler.py index 138ee824d7e..6ca0769d997 100644 --- a/python/paddle/fluid/layers/learning_rate_scheduler.py +++ b/python/paddle/fluid/layers/learning_rate_scheduler.py @@ -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( -- GitLab