Fixed a small issue in the documentation for FeatureExtractorFreezeUnfreeze (#12049)
This commit is contained in:
parent
1ef34c5ffd
commit
1026ceb86d
|
@ -57,7 +57,7 @@ class BaseFinetuning(Callback):
|
|||
>>> class MyModel(pl.LightningModule):
|
||||
... def configure_optimizer(self):
|
||||
... # Make sure to filter the parameters based on `requires_grad`
|
||||
... return Adam(filter(lambda p: p.requires_grad, self.parameters))
|
||||
... return Adam(filter(lambda p: p.requires_grad, self.parameters()))
|
||||
...
|
||||
>>> class FeatureExtractorFreezeUnfreeze(BaseFinetuning):
|
||||
... def __init__(self, unfreeze_at_epoch=10):
|
||||
|
|
Loading…
Reference in New Issue