Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bda28d commit 7371feaCopy full SHA for 7371fea
1 file changed
beginner_source/saving_loading_models.py
@@ -57,7 +57,8 @@
57
# (accessed with ``model.parameters()``). A *state_dict* is simply a
58
# Python dictionary object that maps each layer to its parameter tensor.
59
# Note that only layers with learnable parameters (convolutional layers,
60
-# linear layers, etc.) have entries in the model’s *state_dict*. Optimizer
+# linear layers, etc.) and registered buffers (batchnorm's running_mean)
61
+# have entries in the model’s *state_dict*. Optimizer
62
# objects (``torch.optim``) also have a *state_dict*, which contains
63
# information about the optimizer’s state, as well as the hyperparameters
64
# used.
0 commit comments