Skip to content

refactor(amp): migrate from torch.cuda.amp to torch.amp #3436

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

keelobytes
Copy link

Fixes #3435

@github-actions github-actions bot added module: engine Engine module examples Examples labels Jul 26, 2025
@github-actions github-actions bot added the docs label Jul 26, 2025
@keelobytes
Copy link
Author

@vfdev-5 Can you please take a look

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Jul 26, 2025

@keelobytes check the CI failures.
The fix should be not only a find/replace, but also check where the import is done inside try/except clauses and update the message to an appropriate one

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

Successfully merging this pull request may close these issues.

Fix FutureWarning: torch.cuda.amp.GradScaler(args...) is deprecated. Please use torch.amp.GradScaler('cuda', args...) instead.
2 participants