Skip to content

Commit dda2352

Browse files
committed
Fixed incorrect description of what each dimension represents
1 parent 9dc8613 commit dda2352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/basics/buildmodel_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def forward(self, x):
7575
# along with some `background operations <https://github.com/pytorch/pytorch/blob/270111b7b611d174967ed204776985cefca9c144/torch/nn/modules/module.py#L866>`_.
7676
# Do not call ``model.forward()`` directly!
7777
#
78-
# Calling the model on the input returns a 2-dimensional tensor with dim=0 corresponding to each output of 10 raw predicted values for each class, and dim=1 corresponding to the individual values of each output.
78+
# Calling the model on the input returns a 2-dimensional tensor with dim=0 corresponding to the batch dimension (one entry per example in the input) and dim=1 corresponding to the 10 raw predicted class scores (logits) for each example.
7979
# We get the prediction probabilities by passing it through an instance of the ``nn.Softmax`` module.
8080

8181
X = torch.rand(1, 28, 28, device=device)

0 commit comments

Comments
 (0)