Skip to content

Commit 4a0f374

Browse files
committed
Refine API doc
1 parent 11f31d1 commit 4a0f374

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

python/paddle/fluid/layers/learning_rate_scheduler.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ def polynomial_decay(learning_rate,
209209
def piecewise_decay(boundaries, values):
210210
"""Applies piecewise decay to the initial learning rate.
211211
212+
Args:
213+
boundaries: A list of steps numbers.
214+
values: A list of learning rate values that will be picked during
215+
different step boundaries.
216+
217+
Returns:
218+
The decayed learning rate.
219+
212220
>>> boundaries = [10000, 20000]
213221
>>> values = [1.0, 0.5, 0.1]
214222
>>>

0 commit comments

Comments
 (0)