docstr: Add model-specific arguments to the parser.
docstr_tok: ["Add","model-specific","arguments","to","the","parser","."]
code: def add_args(parser):
      """Add model-specific arguments to the parser."""
  
      # command-line args for hybrid_transformer_rnn model are used to build
      # encoder and teacher decoder
      hybrid_transformer_rnn.HybridTransformerRNNModel.add_args(parser)
  
      # distinct args for student decoder
      parser.add_argument(
          "--student-decoder-embed-dim",
          type=int,
          metavar="N",
          help="[student RNN] decoder embedding dimension",
      )
      parser.add_argument(
          "--student-decoder-layers",
          type=int,
          metavar="N",
          help="[student RNN] num decoder layers",
      )
      parser.add_argument(
          "--student-decoder-attention-heads",
          type=int,
          metavar="N",
          help="[student RNN] num decoder attention heads",
      )
      parser.add_argument(
          "--student-decoder-lstm-units",
          type=int,
          metavar="N",
          help="[student RNN] num LSTM units for each decoder layer",
      )
      parser.add_argument(
          "--student-decoder-out-embed-dim",
          type=int,
          metavar="N",
          help="[student RNN] decoder output embedding dimension",
      )
      parser.add_argument(
          "--student-decoder-reduced-attention-dim",
          type=int,
          default=None,
          metavar="N",
          help="if specified, computes attention with this dimensionality "
          "in the student decoder (instead of using encoder output dims)",
      )
  
file_path: translate/pytorch_translate/research/knowledge_distillation/hybrid_dual_decoder_kd_model.py
imports: from fairseq.models import FairseqEncoderDecoderModel, register_model, register_model_architecture
  from pytorch_translate import hybrid_transformer_rnn, transformer
  from pytorch_translate.utils import torch_find
label_desc: Use image node_id 4 for calling the HybridDualDecoderKDModel obj's underlying member method code with example usage: obj.add_args(parser) without return types