Skip to content

Commit 4c72e9d

Browse files
authored
Update autograd_tutorial.py
1 parent 360fb5a commit 4c72e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/blitz/autograd_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284

285285
from torch import nn, optim
286286

287-
model = torchvision.models.resnet18(pretrained=True)
287+
model = resnet18(weights=ResNet18_Weights.DEFAULT)
288288

289289
# Freeze all the parameters in the network
290290
for param in model.parameters():

0 commit comments

Comments
 (0)