Closed kit1980 closed 10 months ago
torch.load without weights_only is unsafe. We probably want to set it to follow best practices as this code will likely be reused.
torch.load
weights_only
If weights_only=True doesn't work here, then explicit weights_only=False should be used.
weights_only=True
weights_only=False
Found with https://github.com/pytorch-labs/torchfix/
torch.load
withoutweights_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 explicitweights_only=False
should be used.Found with https://github.com/pytorch-labs/torchfix/