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 reset(self):
      self.n_count = 0
      self.sum = 0
  
imports: import torch
  import pickle
  import numpy
label_desc: Use image node_id 3 for calling the Averager obj's underlying member method code with example usage: obj.reset() without return types