Skip to content

Commit

Permalink
Fix unfreeze_and_add_param_group expects modules rather than `mod…
Browse files Browse the repository at this point in the history
…ule` (#6822)
  • Loading branch information
sadiqj committed Apr 5, 2021
1 parent c3da7f5 commit 7f91c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/callbacks/finetuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def finetune_function(self, pl_module, current_epoch, optimizer, optimizer_idx):
# When `current_epoch` is 10, feature_extractor will start training.
if current_epoch == self._unfreeze_at_epoch:
self.unfreeze_and_add_param_group(
module=pl_module.feature_extractor,
modules=pl_module.feature_extractor,
optimizer=optimizer,
train_bn=True,
)
Expand Down

0 comments on commit 7f91c5e

Please sign in to comment.