Skip to content

Conversation

@kit1980
Copy link
Contributor

@kit1980 kit1980 commented Nov 30, 2023

torch.load without weights_only is unsafe.
We probably want to set it to follow best practices as this code will likely be reused.

If weights_only=True doesn't work here, then explicit weights_only=False should be used.

Found with https://github.com/pytorch-labs/torchfix/

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 30, 2023
@kit1980 kit1980 requested a review from Chillee November 30, 2023 23:07
Copy link
Contributor

@Chillee Chillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Chillee Chillee merged commit 790d30c into main Nov 30, 2023
@kit1980 kit1980 deleted the sdym/weights-only branch December 1, 2023 00:04
mostafaelhoushi added a commit that referenced this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants