From 4a0f3743c34b8f75e564dffd37a656cf63f89d24 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Fri, 15 Jun 2018 17:03:36 +0800 Subject: [PATCH] Refine API doc --- python/paddle/fluid/layers/learning_rate_scheduler.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/paddle/fluid/layers/learning_rate_scheduler.py b/python/paddle/fluid/layers/learning_rate_scheduler.py index 716cc7824..fe9b40b81 100644 --- a/python/paddle/fluid/layers/learning_rate_scheduler.py +++ b/python/paddle/fluid/layers/learning_rate_scheduler.py @@ -209,6 +209,14 @@ def polynomial_decay(learning_rate, def piecewise_decay(boundaries, values): """Applies piecewise decay to the initial learning rate. + Args: + boundaries: A list of steps numbers. + values: A list of learning rate values that will be picked during + different step boundaries. + + Returns: + The decayed learning rate. + >>> boundaries = [10000, 20000] >>> values = [1.0, 0.5, 0.1] >>> -- GitLab