class_docstr: TransformerDecoder class.
  Args:
      decoder_layer (nn.Module): dencoder module
      num_layers (int): number of layers
class_docstr_tok: ["TransformerDecoder","class",".","Args",":","decoder_layer","(","nn.Module",")",":","dencoder","module","num_layers","(","int",")",":","number","of","layers"]
code: def __init__(self, decoder_layer, num_layers):
      super().__init__()
      self.layers = _get_clones(decoder_layer, num_layers)
      self.num_layers = num_layers
  
imports: import copy
  import torch
  import torch.nn.functional
  from typing import Optional
  from torch import nn, Tensor
label_desc: Use image node_id 1 to create a new TransformerDecoder object from inherited base classes: nn with example: obj = TransformerDecoder(decoder_layer, num_layers)