class_docstr: Compute average for torch.Tensor, used for loss average.
class_docstr_tok: ["Compute","average","for","torch.Tensor",",","used","for","loss","average","."]
code: def __init__(self):
      self.reset()
  
imports: import torch
  import pickle
  import numpy
label_desc: Use image node_id 1 to create a new Averager object from inherited base classes: object with example: obj = Averager()