class_docstr: Wrapper around multiple decoder final hidden states.
docstr: Delegate squeeze to avoid modifying
  :func:`onmt.translate.translator.Translator.translate_batch()`
docstr_tok: ["Delegate","squeeze","to","avoid","modifying",":","func",":","`","onmt.translate.translator.Translator.translate_batch","(",")","`"]
code: def squeeze(self, dim=None):
      """Delegate squeeze to avoid modifying
      :func:`onmt.translate.translator.Translator.translate_batch()`
      """
      return EnsembleDecoderOutput(
          [x.squeeze(dim) for x in self.model_dec_outs]
      )
  
imports: import torch
  import torch.nn
  from onmt.encoders.encoder import EncoderBase
  from onmt.decoders.decoder import DecoderBase
  from onmt.models import NMTModel
  import onmt.model_builder
label_desc: Use image node_id 2 for calling the EnsembleDecoderOutput obj's underlying member method code with example usage: obj.squeeze(dim) and returns: EnsembleDecoderOutput