class_docstr: Transformer encoder-decoder model.
      
class_docstr_tok: ["Transformer","encoder-decoder","model","."]
docstr: Customized load.
docstr_tok: ["Customized","load","."]
code: def load_state_dict(self, state_dict, strict=True):
      """Customized load."""
  
      self.encoder.load_state_dict(
          state_dict[self._encoder_key], strict=strict
      )
      self.decoder.load_state_dict(
          state_dict[self._decoder_key], strict=strict
      )
      if self.hiddens_module is not None:
          self.hiddens_module.load_state_dict(
              state_dict[self._hiddens_module], strict=strict
          )
  
file_path: NeMo/nemo/collections/nlp/modules/common/megatron/megatron_encoder_decoder.py
imports: from ast import Mod
  import torch
  from nemo.collections.nlp.modules.common.megatron.hiddens import MegatronHiddensModule
  from nemo.collections.nlp.modules.common.megatron.megatron_perceiver_encoders import MegatronPerceiverEncoderModule
  from nemo.collections.nlp.modules.common.megatron.module import MegatronModule
  from nemo.collections.nlp.modules.common.megatron.utils import ApexGuardDefaults
label_desc: Use image node_id 7 for calling the MegatronTransformerEncoderDecoderModule obj's underlying member method code with example usage: obj.load_state_dict(state_dict, strict) without return types