Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit306e44c

Browse files
Update
[ghstack-poisoned]
2 parents79d43a5 +1632745 commit306e44c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎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)

[8]ページ先頭

©2009-2025 Movatter.jp