Skip to content

Commit f2579c6

Browse files
fix case of torch.nn.Module (#1791)
Co-authored-by: Holly Sweeney <77758406+holly1238@users.noreply.github.com>
1 parent 6fa035e commit f2579c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/introyt/autogradyt_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def forward(self, x):
269269
##########################################################################
270270
# One thing you might notice is that we never specify
271271
# ``requires_grad=True`` for the model’s layers. Within a subclass of
272-
# ``torch.nn.module``, it’s assumed that we want to track gradients on the
272+
# ``torch.nn.Module``, it’s assumed that we want to track gradients on the
273273
# layers’ weights for learning.
274274
#
275275
# If we look at the layers of the model, we can examine the values of the

0 commit comments

Comments
 (0)