Method
__init__
(self, name, use_accel, fmt=':f', summary_type=Summary.AVERAGE)
Source from the content-addressed store, hash-verified
| 440 | class 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
Tested by
no test coverage detected