-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Updated classification reference script to use torch.cuda.amp #4547
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
Updated classification reference script to use torch.cuda.amp #4547
Conversation
Training logs without any changes: Note: While running the above training jobs, I had not yet changed Following log files with and without |
looks like there are linting issue (black formatting), LMK if you need any help regarding this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Feel free to merge after fixing the linter issues.
Thanks @NicolasHug, I foolishly ran |
#4547) Summary: * Updated classification reference script to use torch.cuda.amp * Assigned scaler to None if amp is False * Fixed linter errors Reviewed By: NicolasHug Differential Revision: D31505567 fbshipit-source-id: cbddc5de9b9cc48beb09c56d60f54645ba655813
…h#4547) * Updated classification reference script to use torch.cuda.amp * Assigned scaler to None if amp is False * Fixed linter errors
…h#4547) * Updated classification reference script to use torch.cuda.amp * Assigned scaler to None if amp is False * Fixed linter errors
Partly addresses #4509.
The changes follow this example.
cc @datumbox