Skip to content

Commit

Permalink
Fixed missing arguments in lr_find call (#6784)
Browse files Browse the repository at this point in the history
There seem to be 3 arguments missing in the `lr_find` call in the tunining.py file.
  • Loading branch information
THasthika authored Apr 6, 2021
1 parent 89b5326 commit f581411
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pytorch_lightning/tuner/tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ def tune(self, model, train_dataloader, val_dataloaders, datamodule):

# Run learning rate finder:
if self.trainer.auto_lr_find:
self.lr_find(model, update_attr=True)
self.lr_find(
model,
update_attr=True,
train_dataloader=train_dataloader,
val_dataloaders=val_dataloaders,
datamodule=datamodule,
)

self.trainer.state = TrainerState.FINISHED

Expand Down

0 comments on commit f581411

Please sign in to comment.