class_docstr: The base embedder class that all embedder classes inherit.
  
  Args:
      num_embeds (int, optional): The number of embedding elements, e.g.,
          the vocabulary size of a word embedder.
      hparams (dict or HParams, optional): Embedder hyperparameters. Missing
          hyperparamerter will be set to default values. See
          :meth:`default_hparams` for the hyperparameter structure and
          default values.
class_docstr_tok: ["The","base","embedder","class","that","all","embedder","classes","inherit",".","Args",":","num_embeds","(","int",",","optional",")",":","The","number","of","embedding","elements",",","e.g.",",","the","vocabulary","size","of","a","word","embedder",".","hparams","(","dict","or","HParams",",","optional",")",":","Embedder","hyperparameters",".","Missing","hyperparamerter","will","be","set","to","default","values",".","See",":","meth",":","`","default_hparams","`","for","the","hyperparameter","structure","and","default","values","."]
code: def __init__(self, num_embeds=None, hparams=None):
      ModuleBase.__init__(self, hparams)
  
      self._num_embeds = num_embeds
  
file_path: texar/texar/tf/modules/embedders/embedder_base.py
imports: import tensorflow
  from texar.tf.module_base import ModuleBase
  from texar.tf.modules.embedders import embedder_utils
  from texar.tf.utils.shapes import shape_list
label_desc: Use image node_id 1 to create a new EmbedderBase object from inherited base classes: ModuleBase with example: obj = EmbedderBase(num_embeds, hparams)