Skip to content

Commit 903b8c4

Browse files
small typo fix
1 parent 3d6454d commit 903b8c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes_source/recipes/module_load_state_dict_tips.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def forward(self, x):
3333
m = SomeModule(1000)
3434
torch.save(m.state_dict(), 'checkpoint.pth')
3535

36-
##############################################################################
37-
# The follow snippet demonstrates the use of the the ``mmap`` keyword argument
36+
#################################################################################
37+
# The following snippet demonstrates the use of the the ``mmap`` keyword argument
3838
# to ``torch.load``, the ``torch.device()`` context manager and the ``assign``
3939
# keyword argument to ``nn.Module.load_state_dict()``.
4040

0 commit comments

Comments
 (0)