Skip to content

AttributeError: 'LightningOptimizer' object has no attribute 'state' #4974

@yikuanli

Description

@yikuanli

I am using pytorch lightning with Adam optmiser to train a BYOL model, the model and pipeline works fine while training, when I stop and resume from checkpoint, it raise this error. I didn't do anything just resume from previous checkpoint, have no idea why there is an error like this, I upgrade my bolts and pytorch lightning to the mast (I think its the latest version)
image

my opmizer is like this, and Adam is the original Adam provided by pytorch
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority: 0High priority taskquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions