class_docstr: Standard positional encoding
class_docstr_tok: ["Standard","positional","encoding"]
code: def forward(self, x):
      if isinstance(x, NestedTensor):
          x = x.tensors
      x = x + self.pe[: x.size(0), :]
      x = self.dropout(x)
      return x
  
file_path: towhee/towhee/models/layers/position_encoding.py
imports: import math
  import torch
  from torch import nn
  from towhee.models.coformer.utils import NestedTensor
label_desc: Use image node_id 2 for calling the PositionEmbedding obj's underlying member method code with example usage: obj.forward(x) and returns: x