class_docstr: A deque based replay memory that accepts new memory entry and deletes
  oldest memory entry if exceeding the capacity. Memory entries are
  accessed in random order.
  
  Args:
      hparams (dict or HParams, optional): Hyperparameters. Missing
          hyperparameters are set to default values. See
          :meth:`default_hparams` for the defaults.
class_docstr_tok: ["A","deque","based","replay","memory","that","accepts","new","memory","entry","and","deletes","oldest","memory","entry","if","exceeding","the","capacity",".","Memory","entries","are","accessed","in","random","order",".","Args",":","hparams","(","dict","or","HParams",",","optional",")",":","Hyperparameters",".","Missing","hyperparameters","are","set","to","default","values",".","See",":","meth",":","`","default_hparams","`","for","the","defaults","."]
docstr: Returns a `dict` of hyperparameters and their default values.
  
  .. code-block:: python
  
      {
          'capacity': 80000,
          'name': 'deque_replay_memory',
      }
  
  Here:
  
  "capacity": int
      Maximum size of memory kept. Deletes oldest memories if exceeds
      the capacity.
docstr_tok: ["Returns","a","`","dict","`","of","hyperparameters","and","their","default","values",".","..","code-block",":",":","python","{","'capacity","'",":","80000",",","'name","'",":","'deque_replay_memory","'",",","}","Here",":","''","capacity","''",":","int","Maximum","size","of","memory","kept",".","Deletes","oldest","memories","if","exceeds","the","capacity","."]
code: def default_hparams():
      """Returns a `dict` of hyperparameters and their default values.
  
      .. code-block:: python
  
          {
              'capacity': 80000,
              'name': 'deque_replay_memory',
          }
  
      Here:
  
      "capacity": int
          Maximum size of memory kept. Deletes oldest memories if exceeds
          the capacity.
      """
      return {"name": "deque_replay_memory", "capacity": 80000}
  
file_path: texar/texar/tf/core/replay_memories.py
imports: from collections import deque
  import random
  from texar.tf.hyperparams import HParams
label_desc: Use image node_id 2 for calling the DequeReplayMemory obj's underlying member method code with example usage: obj.default_hparams() and returns: dict