class_docstr: BART Model.
docstr: Compute output logits.
  
  Override standard TGM output to _not_ prevent generation of BOS.
docstr_tok: ["Compute","output","logits",".","Override","standard","TGM","output","to","_not_","prevent","generation","of","BOS","."]
code: def output(self, tensor: torch.Tensor) -> torch.Tensor:
      """
      Compute output logits.
  
      Override standard TGM output to _not_ prevent generation of BOS.
      """
      # project back to vocabulary
      output = F.linear(tensor, self.embeddings.weight)
  
      return output
  
file_path: ParlAI/parlai/agents/bart/modules.py
imports: import torch
  import torch.nn.functional
  from typing import Any, Dict, Union, List, Optional
  from parlai.agents.transformer.modules import TransformerGeneratorModel
label_desc: Use image node_id 1 for calling the BartModel obj's underlying member method code with example usage: obj.output(tensor) and returns: output