class_docstr: Exponential Moving Average of Fairseq Models
class_docstr_tok: ["Exponential","Moving","Average","of","Fairseq","Models"]
docstr: Load data from a model spec into EMA model
docstr_tok: ["Load","data","from","a","model","spec","into","EMA","model"]
code: def restore(self, state_dict, build_fp32_params=False):
      """Load data from a model spec into EMA model"""
      self.model.load_state_dict(state_dict, strict=False)
      if build_fp32_params:
          self.build_fp32_params(state_dict)
  
file_path: fairseq/fairseq/modules/ema_module.py
imports: import copy
  from dataclasses import dataclass, field
  import logging
  import torch
  from omegaconf import II
  from fairseq.dataclass import FairseqDataclass
label_desc: Use image node_id 3 for calling the EMAModule obj's underlying member method code with example usage: obj.restore(state_dict, build_fp32_params) without return types