Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The epoch parameter in scheduler.step() was not necessary and is being deprecated where possible #194

Open
jalew188 opened this issue Aug 10, 2024 · 1 comment
Assignees

Comments

@jalew188
Copy link
Collaborator

[.../site-packages/torch/optim/lr_scheduler.py:232]: UserWarning: The epoch parameter in `scheduler.step()` was not necessary and is being deprecated where possible. Please use `scheduler.step()` to step the scheduler. During the deprecation, if epoch is different from None, the closed form is used instead of the new chainable form, where available. Please open an issue if you are unable to replicate your use case: https://github.com/pytorch/pytorch/issues/new/choose.
  warnings.warn(EPOCH_DEPRECATION_WARNING, UserWarning)
@mo-sameh mo-sameh self-assigned this Aug 12, 2024
@mo-sameh
Copy link
Collaborator

I was trying to solve this warning since we also fixed it in alphaDIA. However, I couldn't reproduce the warning using the default WarmupLR_Scheduler. Could you please provide more details on when exactly this warning occurred? I am happy to check it out if it still being raised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants