class_docstr: Relative positional encodings.
class_docstr_tok: ["Relative","positional","encodings","."]
docstr: Returns a dictionary of hyperparameters with default values.
  
  .. code-block:: python
  
      {
          "dim": 768,
          "max_seq_len": 512
      }
  
  Here
  
  `"dim"`: int
      Dimension size of the positional embedding
  
  `"max_seq_len"`: int
      Maximum size of the sequence length
docstr_tok: ["Returns","a","dictionary","of","hyperparameters","with","default","values",".","..","code-block",":",":","python","{","``","dim","''",":","768",",","``","max_seq_len","''",":","512","}","Here","`","``","dim","''","`",":","int","Dimension","size","of","the","positional","embedding","`","``","max_seq_len","''","`",":","int","Maximum","size","of","the","sequence","length"]
code: def default_hparams():
      r"""Returns a dictionary of hyperparameters with default values.
  
      .. code-block:: python
  
          {
              "dim": 768,
              "max_seq_len": 512
          }
  
      Here
  
      `"dim"`: int
          Dimension size of the positional embedding
  
      `"max_seq_len"`: int
          Maximum size of the sequence length
      """
      return {
          "name": "relative_positional_encoder",
          "dim": 768,
          "max_seq_len": 512,
      }
  
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 2 for calling the RelativePositionalEncoding obj's underlying member method code with example usage: obj.default_hparams() and returns: dict