Skip to content

Commit a5d2a6d

Browse files
authored
fix: replace invalid torch.functional import with torch.nn.functional (#3756)
Fixes #3755 replace torch.functional import with preferred torch.nn.functional
1 parent f3d9750 commit a5d2a6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

beginner_source/introyt/modelsyt_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def forward(self, x):
144144
# We saw convolutional layers in action in LeNet5 in an earlier video:
145145
#
146146

147-
import torch.functional as F
147+
import torch.nn.functional as F
148148

149149

150150
class LeNet(torch.nn.Module):

0 commit comments

Comments
 (0)