Skip to content

Commit

Permalink
Add manual logging to training_step manual optimization (#4476)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanNaren authored and rohitgr7 committed Nov 21, 2020
1 parent d040946 commit 69ce966
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/optimizers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ to manually manage the optimization process. To do so, do the following:
opt_d.step()
opt_d.zero_grad()
# log losses
self.log('loss_a', loss_a)
self.log('loss_b', loss_b)
.. note:: This is only recommended for experts who need ultimate flexibility

Manual optimization does not yet support accumulated gradients but will be live in 1.1.0
Expand Down

0 comments on commit 69ce966

Please sign in to comment.