Skip to content

Commit

Permalink
step lr_scheduler on epoch end in hapi/model.py fit. test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
heavengate committed Sep 29, 2020
1 parent 719309a commit fc402e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/paddle/hapi/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,9 @@ def fit(

cbks.on_end('eval', eval_logs)

# step learning rate scheduler on each epcoh end
self._optimizer._learning_rate.step()

cbks.on_end('train', logs)
self._test_dataloader = None

Expand Down

0 comments on commit fc402e0

Please sign in to comment.