Skip to content

Commit

Permalink
Change one torch.load
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Kerfoot <[email protected]>
  • Loading branch information
ericspod committed Feb 25, 2025
1 parent 3e0b517 commit 5db7a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/data/meta_tensor/test_meta_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def test_pickling(self):
with tempfile.TemporaryDirectory() as tmp_dir:
fname = os.path.join(tmp_dir, "im.pt")
torch.save(m, fname)
m2 = torch.load(fname, weights_only=True)
m2 = torch.load(fname, weights_only=False)
self.check(m2, m, ids=False)

@skip_if_no_cuda
Expand Down

0 comments on commit 5db7a56

Please sign in to comment.