Hello,
I have trained a language model and now I want to fine-tune this pre-trained model.
model.summary()
model.load_encoder('lmtest') 
model.freeze()
model.summary()

Before loading the encoder I look at model summary and once again after loading and freezing. However in both summaries trainable modules and number of parameters are still same. I would expect freeze() to set everything other than last layer to non-trainable if I understood correctly. So why does not freeze() change anything (visible)?
I am quite new to pytorch and I would appreciate your guidance.