AttributeError: 'ResNet' object has no attribute 'param_groups'

I have encountered such an error when training with a pre-training model. Why?

Hi, Xiao,
I face a same problem. Have you fixed your problem yet?

param_groups is usually an attribute of optimizers. If you are looking for the model parameters, you can use model.parameters().

hi, ptrblck. thank you for your help. it works.