class_docstr: Tracks a moving average of model parameters.
class_docstr_tok: ["Tracks","a","moving","average","of","model","parameters","."]
docstr: Update the moving averages based on the latest values of the parameters.
docstr_tok: ["Update","the","moving","averages","based","on","the","latest","values","of","the","parameters","."]
code: def apply(self, num_updates: Optional[int] = None):
      """
      Update the moving averages based on the latest values of the parameters.
      """
      raise NotImplementedError
  
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 2 for calling the MovingAverage obj's underlying member method code with example usage: obj.apply(num_updates) without return types