From 1b5cdfdbed53283c16ef25584ccebfc08f4a11cc Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Sun, 17 Mar 2024 20:18:34 +0800 Subject: [PATCH] Update saving_loading_models.py --- beginner_source/saving_loading_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beginner_source/saving_loading_models.py b/beginner_source/saving_loading_models.py index 3e100afd1e2..fcd33be2537 100644 --- a/beginner_source/saving_loading_models.py +++ b/beginner_source/saving_loading_models.py @@ -160,7 +160,7 @@ # The 1.6 release of PyTorch switched ``torch.save`` to use a new # zip file-based format. ``torch.load`` still retains the ability to # load files in the old format. If for any reason you want ``torch.save`` -# to use the old format, pass the ``kwarg``parameter ``_use_new_zipfile_serialization=False``. +# to use the old format, pass the ``kwarg`` parameter ``_use_new_zipfile_serialization=False``. # # When saving a model for inference, it is only necessary to save the # trained model’s learned parameters. Saving the model’s *state_dict* with