Skip to content

Commit

Permalink
fix deepspeed monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitgr7 committed Oct 14, 2021
1 parent 40cecaa commit 801d928
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytorch_lightning/callbacks/lr_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ def _find_names_from_optimizers(
optimizers_without_scheduler = []

for optimizer in optimizers:
# Deepspeed optimizer wraps the native optimizer
optimizer = optimizer.optimizer if hasattr(optimizer, "optimizer") else optimizer
if optimizer in seen_optimizers:
continue

Expand Down

0 comments on commit 801d928

Please sign in to comment.