MCPcopy Create free account
hub / github.com/pytorch/examples / __init__

Method __init__

imagenet/main.py:442–447  ·  view source on GitHub ↗
(self, name, use_accel, fmt=':f', summary_type=Summary.AVERAGE)

Source from the content-addressed store, hash-verified

440class AverageMeter(object):
441 """Computes and stores the average and current value"""
442 def __init__(self, name, use_accel, fmt=':f', summary_type=Summary.AVERAGE):
443 self.name = name
444 self.use_accel = use_accel
445 self.fmt = fmt
446 self.summary_type = summary_type
447 self.reset()
448
449 def reset(self):
450 self.val = 0

Callers

nothing calls this directly

Calls 1

resetMethod · 0.95

Tested by

no test coverage detected