class_docstr: Extension of Transresnet to incorporate dialogue history and multimodality.
docstr: Concatenate non-`None` encodings.
  
  :param tensors:
      list tensors to concatenate
  
  :return:
      concatenated tensors
docstr_tok: ["Concatenate","non-","`","None","`","encodings",".",":","param","tensors",":","list","tensors","to","concatenate",":","return",":","concatenated","tensors"]
code: def cat_encodings(self, tensors):
      """
      Concatenate non-`None` encodings.
  
      :param tensors:
          list tensors to concatenate
  
      :return:
          concatenated tensors
      """
      tensors = [t for t in tensors if t is not None]
      return torch.cat([t.unsqueeze(1) for t in tensors], dim=1)
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  import torch
  from torch import nn
  from parlai.utils.io import PathManager
  from parlai.agents.transformer.modules import TransformerEncoder, create_position_codes, TransformerEncoderLayer
  from projects.personality_captions.transresnet.modules import TransresnetModel, load_fasttext_embeddings
label_desc: Use image node_id 13 for calling the TransresnetMultimodalModel obj's underlying member method code with example usage: obj.cat_encodings(tensors) and returns: torch