class_docstr: Wrap a transformer in a linear layer.
class_docstr_tok: ["Wrap","a","transformer","in","a","linear","layer","."]
code: def __init__(self, transformer: TransformerEncoder, output_dim: int):
      super().__init__()
      self.transformer = transformer
      input_dim = transformer.out_dim
      self.additional_linear_layer = nn.Linear(input_dim, output_dim)
  
file_path: ParlAI/parlai/agents/transformer/modules/wrappers.py
imports: import torch
  import torch.nn
  from parlai.agents.transformer.modules import TransformerEncoder
label_desc: Use image node_id 1 to create a new TransformerLinearWrapper object from inherited base classes: nn with example: obj = TransformerLinearWrapper(transformer, output_dim)