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

Set weights_only to false for pytorch convert #3997

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

mkruszyx
Copy link
Contributor

Fix for failing cpp_gapi-demos workflow with PyTorch 2.6

Cannot use weights_only=True with files saved in the legacy .tar format. In PyTorch 2.6, we changed the default value of the weights_only argument in torch.load from False to True. Re-running torch.load with weights_only set to False will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.

FAILED:
resnet-18-pytorch
regnetx-3.2gf
resnet-50-pytorch
resnet-34-pytorch

@Wovchena Wovchena enabled auto-merge (squash) February 11, 2025 14:00
@Wovchena
Copy link
Collaborator

Jenkins ok to test

@Wovchena Wovchena disabled auto-merge February 12, 2025 08:18
@Wovchena Wovchena merged commit 5c38a67 into openvinotoolkit:master Feb 12, 2025
13 of 14 checks passed
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