class_docstr: TransformerDecoderLayer class.
  Args:
      d_model (int): dimension of model
      nhead (int): number of head
      dim_feedforward (int): dimension of feedforward
      dropout (float): dropout
      activation (str): activation
class_docstr_tok: ["TransformerDecoderLayer","class",".","Args",":","d_model","(","int",")",":","dimension","of","model","nhead","(","int",")",":","number","of","head","dim_feedforward","(","int",")",":","dimension","of","feedforward","dropout","(","float",")",":","dropout","activation","(","str",")",":","activation"]
code: def with_pos_embed(self, tensor, pos: Optional[Tensor]):
      return tensor if pos is None else tensor + pos
  
imports: import copy
  import torch
  import torch.nn.functional
  from typing import Optional
  from torch import nn, Tensor
label_desc: Use image node_id 2 for calling the TransformerDecoderLayer obj's underlying member method code with example usage: obj.with_pos_embed(tensor, pos) and returns: unknown