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 the latest element in the memeory.
          
docstr_tok: ["Returns","the","latest","element","in","the","memeory","."]
code: def last(self):
      """Returns the latest element in the memeory."""
      return self.deque[-1]
  
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 5 for calling the DequeReplayMemory obj's underlying member method code with example usage: obj.last() and returns: self