Skip to content

Commit cb28f79

Browse files
rohitgr7tchatonBorda
authored
remove irrelevant docs in optimizer_step (#4964)
Co-authored-by: chaton <[email protected]> Co-authored-by: Jirka Borovec <[email protected]>
1 parent 2393474 commit cb28f79

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pytorch_lightning/core/lightning.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,10 +1232,6 @@ def optimizer_step(self, epoch, batch_idx, optimizer, optimizer_idx,
12321232
optimizer.step(closure=optimizer_closure)
12331233
optimizer.zero_grad()
12341234
1235-
Note:
1236-
If you also override the :meth:`~pytorch_lightning.core.hooks.ModelHooks.on_before_zero_grad`
1237-
model hook don't forget to add the call to it before ``optimizer.zero_grad()`` yourself.
1238-
12391235
"""
12401236
if not isinstance(optimizer, LightningOptimizer):
12411237
# wraps into LightingOptimizer only for running step

0 commit comments

Comments
 (0)