class_docstr: Tracks a moving average of model parameters.
class_docstr_tok: ["Tracks","a","moving","average","of","model","parameters","."]
docstr: Replace all the parameter values with the averages.
  Save the current parameter values to restore later.
docstr_tok: ["Replace","all","the","parameter","values","with","the","averages",".","Save","the","current","parameter","values","to","restore","later","."]
code: def assign_average_value(self) -> None:
      """
      Replace all the parameter values with the averages.
      Save the current parameter values to restore later.
      """
      for name, parameter in self._parameters:
          self._backups[name].copy_(parameter.data)
          parameter.data.copy_(self._shadows[name])
  
file_path: allennlp/allennlp/training/moving_average.py
imports: from typing import Iterable, Tuple, Optional, Any, Dict
  import torch
  from allennlp.common.registrable import Registrable
label_desc: Use image node_id 3 for calling the MovingAverage obj's underlying member method code with example usage: obj.assign_average_value() without return types