torch.load without weights_only parameter is unsafe. Explicitly set weights_only to False only if you trust the data you load and full pickle functionality is needed, otherwise set weights_only=True.
If weights_only=True doesn't work for some cases, then explicit weights_only=False should be used.
torch.load
withoutweights_only
parameter is unsafe. Explicitly setweights_only
to False only if you trust the data you load and full pickle functionality is needed, otherwise setweights_only=True
.If
weights_only=True
doesn't work for some cases, then explicitweights_only=False
should be used.Found with https://github.com/pytorch-labs/torchfix/