Skip to content

Commit 278d16c

Browse files
rhkr8521gogori6565
andcommitted
PyTorch v2.4.0๋ฐ˜์˜, pytorch/tutorials@ff7142e (PyTorchKorea/pytorch.kr#54)
Co-authored-by: Juhyeon Lee <[email protected]>
1 parent 71feff4 commit 278d16c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

โ€Žrecipes_source/recipes/warmstarting_model_using_parameters_from_a_different_model.pyโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def forward(self, x):
124124
# ๋งค์น˜๋˜๋„๋ก ํ•ด ์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค.
125125
#
126126

127-
netB.load_state_dict(torch.load(PATH), strict=False)
127+
netB.load_state_dict(torch.load(PATH, weights_only=True), strict=False)
128128

129129

130130
######################################################################

0 commit comments

Comments
ย (0)