class_docstr: BART Model.
docstr: Return initial input to the decoder.
  
  Override TGA._get_initial_forced_decoder_input to seed EOS BOS.
  
  :param bsz:
      batchsize
  :param inputs:
      inputs to decode
  
  :return initial_input:
      initial input for the decoder.
docstr_tok: ["Return","initial","input","to","the","decoder",".","Override","TGA._get_initial_forced_decoder_input","to","seed","EOS","BOS",".",":","param","bsz",":","batchsize",":","param","inputs",":","inputs","to","decode",":","return","initial_input",":","initial","input","for","the","decoder","."]
code: def _get_initial_forced_decoder_input(
      self, bsz: int, inputs: torch.LongTensor
  ):
      """
      Return initial input to the decoder.
  
      Override TGA._get_initial_forced_decoder_input to seed EOS BOS.
  
      :param bsz:
          batchsize
      :param inputs:
          inputs to decode
  
      :return initial_input:
          initial input for the decoder.
      """
      tens = (
          torch.LongTensor([self.END_IDX, self.START_IDX])
          .to(inputs)
          .detach()
          .expand(bsz, 2)
      )
      return torch.cat([tens, inputs], 1)
  
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 2 for calling the BartModel obj's underlying member method code with example usage: obj._get_initial_forced_decoder_input(bsz, inputs) and returns: torch