-
Notifications
You must be signed in to change notification settings - Fork 281
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
Fixes to prep for weights_only default flip #2514
base: main
Are you sure you want to change the base?
Conversation
cc @kit1980, can you help review this? |
@@ -29,7 +31,13 @@ def __init__(self, test, device, batch_size=None, extra_args=[]): | |||
) | |||
|
|||
self.model = models.resnet18(num_classes=10) | |||
prev_wo_envvar = os.environ.get("TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD", None) |
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.
We don't have access to the torch.load
call within opacus here, updating opacus also won't help because torchbench doesn't depend on a nightly of opacus but rather stable release
@kit1980 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Some fixes for pytorch/pytorch#137602