class_docstr: Sinosoidal Positional Embedding.
      
class_docstr_tok: ["Sinosoidal","Positional","Embedding","."]
code: def __init__(self, embed_dim):
      ModuleBase.__init__(self)
      freq_seq = tf.range(0.0, embed_dim, 2.0)
      self.inv_freq = 1 / (10000 ** (freq_seq / embed_dim))
  
imports: import tensorflow
  from texar.tf.core import layers
  from texar.tf.module_base import ModuleBase
  from texar.tf.utils.mode import is_train_mode
label_desc: Use image node_id 1 to create a new PositionalEmbedding object from inherited base classes: ModuleBase with example: obj = PositionalEmbedding(embed_dim)