class_docstr: Maintains the moving average (i.e., the average of the latest N records)
  of a single metric.
  
  Args:
      size (int, optional): The window size of moving average. If `None`,
          the average of all added records is maintained.
      name (str, optional): name of the recorder. Used when printing.
class_docstr_tok: ["Maintains","the","moving","average","(","i.e.",",","the","average","of","the","latest","N","records",")","of","a","single","metric",".","Args",":","size","(","int",",","optional",")",":","The","window","size","of","moving","average",".","If","`","None","`",",","the","average","of","all","added","records","is","maintained",".","name","(","str",",","optional",")",":","name","of","the","recorder",".","Used","when","printing","."]
docstr: The name of the recorder.
          
docstr_tok: ["The","name","of","the","recorder","."]
code: def name(self):
      """The name of the recorder."""
      return self.name
  
file_path: texar/texar/tf/utils/average_recorder.py
imports: from collections import deque
label_desc: Use image node_id 6 for calling the _SingleAverageRecorder obj's underlying member method code with example usage: obj.name() and returns: self