Skip to content

Commit 50555db

Browse files
authored
Update saving_loading_models.py (#1173)
1 parent 3423f67 commit 50555db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

beginner_source/saving_loading_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@
262262
# as this contains buffers and parameters that are updated as the model
263263
# trains. Other items that you may want to save are the epoch you left off
264264
# on, the latest recorded training loss, external ``torch.nn.Embedding``
265-
# layers, etc.
265+
# layers, etc. As a result, such a checkpoint is often 2~3 times larger
266+
# than the model alone.
266267
#
267268
# To save multiple components, organize them in a dictionary and use
268269
# ``torch.save()`` to serialize the dictionary. A common PyTorch

0 commit comments

Comments
 (0)