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

add weights_only argument for torch load to support new version of torch #1639

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dianyo
Copy link

@dianyo dianyo commented Feb 21, 2025

Motivation

torch.load start raise error in newer version if not specify weights_only=False, where the default behavior is True.

Modification

Checklist

  • Pre-commit or other linting tools are used to fix the potential lint issues.
  • The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  • If the modification has potential influence on downstream projects, this PR should be tested with downstream projects, like MMDetection or MMPretrain.
  • The documentation has been modified accordingly, like docstring or example tutorials.

@CLAassistant
Copy link

CLAassistant commented Feb 21, 2025

CLA assistant check
All committers have signed the CLA.

@dianyo
Copy link
Author

dianyo commented Feb 21, 2025

looks the circle ci is broken, i can do pre-commit and make sure that lint all looks good. It might comes from manifest files issue.
Screenshot 2025-02-21 at 4 36 45 PM

@zhouzaida zhouzaida requested a review from HAOCHENYE March 4, 2025 14:03
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

Successfully merging this pull request may close these issues.

2 participants