Skip to content

Commit 8a80e49

Browse files
Update
[ghstack-poisoned]
1 parent f50cc53 commit 8a80e49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_nn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ def test_parameterlistdict_setting_attributes(self):
18001800

18011801
def test_parameterlistdict_pickle(self):
18021802
# warning from torch.load call in _load_from_bytes used in UntypedStorage.__reduce__
1803-
WEIGHTS_ONLY_WARN = re.escape("You are using `torch.load` with `weights_only=False`")
1803+
WEIGHTS_ONLY_WARN = "You are using `torch.load` with `weights_only=False`"
18041804
m = nn.ParameterList(map(nn.Parameter, [torch.rand(2), torch.rand(2)]))
18051805
with self.assertWarnsRegex(FutureWarning, WEIGHTS_ONLY_WARN):
18061806
m = pickle.loads(pickle.dumps(m))

0 commit comments

Comments
 (0)