From 50555db7739e84643a27e6b5445c9700f4f7c3d6 Mon Sep 17 00:00:00 2001 From: Yuxin Wu Date: Fri, 2 Oct 2020 09:01:42 -0700 Subject: [PATCH] Update saving_loading_models.py (#1173) --- beginner_source/saving_loading_models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beginner_source/saving_loading_models.py b/beginner_source/saving_loading_models.py index 74a8edc892d..c94d2d8ce36 100644 --- a/beginner_source/saving_loading_models.py +++ b/beginner_source/saving_loading_models.py @@ -262,7 +262,8 @@ # as this contains buffers and parameters that are updated as the model # trains. Other items that you may want to save are the epoch you left off # on, the latest recorded training loss, external ``torch.nn.Embedding`` -# layers, etc. +# layers, etc. As a result, such a checkpoint is often 2~3 times larger +# than the model alone. # # To save multiple components, organize them in a dictionary and use # ``torch.save()`` to serialize the dictionary. A common PyTorch