diff --git a/beginner_source/blitz/neural_networks_tutorial.py b/beginner_source/blitz/neural_networks_tutorial.py index f9405c6b078..10c774f8ed3 100644 --- a/beginner_source/blitz/neural_networks_tutorial.py +++ b/beginner_source/blitz/neural_networks_tutorial.py @@ -156,7 +156,7 @@ def num_flat_features(self, x): # For example: output = net(input) -target = torch.arange(1, 11) # a dummy target, for example +target = torch.randn(10) # a dummy target, for example target = target.view(1, -1) # make it the same shape as output criterion = nn.MSELoss()