original_docstring: Pass the inputs (and mask) through the decoder layer.
  
          Args:
              tgt: the sequence to the decoder layer.
              memory: the sequnce from the last layer of the encoder.
              tgt_mask: the mask for the tgt sequence.
              memory_mask: the mask for the memory sequence.
          
docstring: Pass the inputs (and mask) through the decoder layer.
docstring_tokens: Pass the inputs ( and mask ) through the decoder layer .
code: def forward(self, tgt, memory, tgt_mask, memory_mask):
          """Pass the inputs (and mask) through the decoder layer.
  
          Args:
              tgt: the sequence to the decoder layer.
              memory: the sequnce from the last layer of the encoder.
              tgt_mask: the mask for the tgt sequence.
              memory_mask: the mask for the memory sequence.
          """
          tgt2 = self.self_attn(tgt, tgt, tgt, tgt_mask)[0]
          tgt = tgt + self.dropout1(tgt2)
          tgt = self.norm1(tgt)
  
          tgt2 = self.src_attn(tgt, memory, memory, memory_mask)[0]
          tgt = tgt + self.dropout2(tgt2)
          tgt = self.norm2(tgt)
  
          tgt2 = self.linear2(self.dropout(F.relu(self.linear1(tgt))))
          tgt = tgt + self.dropout3(tgt2)
          tgt = self.norm3(tgt)
          return tgt
code_tokens: def forward ( self , tgt , memory , tgt_mask , memory_mask ) : tgt2 = self . self_attn ( tgt , tgt , tgt , tgt_mask ) [ 0 ] tgt = tgt + self . dropout1 ( tgt2 ) tgt = self . norm1 ( tgt ) tgt2 = self . src_attn ( tgt , memory , memory , memory_mask ) [ 0 ] tgt = tgt + self . dropout2 ( tgt2 ) tgt = self . norm2 ( tgt ) tgt2 = self . linear2 ( self . dropout ( F . relu ( self . linear1 ( tgt ) ) ) ) tgt = tgt + self . dropout3 ( tgt2 ) tgt = self . norm3 ( tgt ) return tgt
short_docstring: Pass the inputs (and mask) through the decoder layer.
short_docstring_tokens: Pass the inputs ( and mask ) through the decoder layer .
comment: """Pass the inputs (and mask) through the decoder layer.
  
          Args:
              tgt: the sequence to the decoder layer.
              memory: the sequnce from the last layer of the encoder.
              tgt_mask: the mask for the tgt sequence.
              memory_mask: the mask for the memory sequence.
          """