class_docstr: Base class for reducers.
  
  This is a `torch.nn.Module` with an additional `fit` method.
  The usual forward is for testing after fitting.
class_docstr_tok: ["Base","class","for","reducers",".","This","is","a","`","torch.nn.Module","`","with","an","additional","`","fit","`","method",".","The","usual","forward","is","for","testing","after","fitting","."]
code: def _load_from_state_dict(
      self,
      state_dict,
      prefix,
      local_metadata,
      strict,
      missing_keys,
      unexpected_keys,
      error_msgs,
  ):
      for bname, b in self._buffers.items():
          if prefix + bname in state_dict and b is None:
              setattr(self, bname, state_dict[prefix + bname])
      super()._load_from_state_dict(
          state_dict,
          prefix,
          local_metadata,
          strict,
          missing_keys,
          unexpected_keys,
          error_msgs,
      )
  
imports: import torch
label_desc: Use image node_id 3 for calling the Reducer obj's underlying member method code with example usage: obj._load_from_state_dict(state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs) without return types