Skip to content

Commit

Permalink
Disable pl optimizer temporarily to fix AMP issues (#5163)
Browse files Browse the repository at this point in the history
* Disable pl optimizer temporarily to fix AMP issues

* Add todo and enable pl optimizer in the test
  • Loading branch information
SeanNaren committed Dec 17, 2020
1 parent 81fd33b commit 3910b28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(
distributed_backend: Optional[str] = None,
automatic_optimization: Optional[bool] = None,
move_metrics_to_cpu: bool = False,
enable_pl_optimizer: bool = True,
enable_pl_optimizer: bool = False,
):
r"""
Customize every aspect of training via flags
Expand Down
2 changes: 2 additions & 0 deletions tests/callbacks/test_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def test_trainer_callback_system(torch_save):
limit_train_batches=3,
limit_test_batches=2,
progress_bar_refresh_rate=0,
# todo: enabled since internally we wrap the model for optimizer step, this should be fixed
enable_pl_optimizer=True
)

# no call yet
Expand Down

0 comments on commit 3910b28

Please sign in to comment.