I can't import OneCycleLR from torch.optim.lr_scheduler

pytorch vision: 1.5.1
Only OneCycleLR can’t be import and others are normal
Am I writing it wrong ?

1 Like

Are you getting an error when you execute the import statement or is this just a warning from your IDE?
OneCycleLR was added ~11 months ago, so it should be in 1.5.1.

1 Like

I tryed to run the code, it worked!

1 Like