From 207648254e10f8a49c9677de08e4eac07b3b6e04 Mon Sep 17 00:00:00 2001 From: Srelox <58371885+Sachapernak@users.noreply.github.com> Date: Sun, 30 Nov 2025 23:11:51 +0100 Subject: [PATCH] Fix incorrect code comment in neural_networks_tutorial The code example incorrectly labels the final linear layer as a "Gaussian layer". However, `fc3` is a standard fully connected layer (`nn.Linear(84, 10)`). Updated the comment to "Fully connected layer" to avoid confusion. Fixes #3677 --- beginner_source/blitz/neural_networks_tutorial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beginner_source/blitz/neural_networks_tutorial.py b/beginner_source/blitz/neural_networks_tutorial.py index 9c04d9af0f3..23f50526e21 100644 --- a/beginner_source/blitz/neural_networks_tutorial.py +++ b/beginner_source/blitz/neural_networks_tutorial.py @@ -78,7 +78,7 @@ def forward(self, input): # Fully connected layer F6: (N, 120) Tensor input, # and outputs a (N, 84) Tensor, it uses RELU activation function f6 = F.relu(self.fc2(f5)) - # Gaussian layer OUTPUT: (N, 84) Tensor input, and + # Fully connected layer OUTPUT: (N, 84) Tensor input, and # outputs a (N, 10) Tensor output = self.fc3(f6) return output