class_docstr: An A-C layer for memory network.
  
  Args:
      H (optional): The matrix :attr:`H` multiplied to :attr:`o` at the end.
      hparams (dict or HParams, optional): Memory network single layer
          hyperparameters. If it is not specified, the default hyperparameter
          setting is used. See :attr:`default_hparams` for the structure and
          default values.
code: def __init__(self, H=None, hparams=None):
      ModuleBase.__init__(self, hparams)
  
      self._H = H
  
imports: import tensorflow
  from texar.tf.module_base import ModuleBase
  from texar.tf.modules.embedders import WordEmbedder, PositionEmbedder
  from texar.tf.utils.mode import switch_dropout
  from texar.tf.modules.memory.embed_fns import default_memnet_embed_fn_hparams
label_desc: Use image node_id 1 to create a new MemNetSingleLayer object from inherited base classes: ModuleBase with example: obj = MemNetSingleLayer(H, hparams)