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

Method __init__

imagenet/main.py:492–495  ·  view source on GitHub ↗
(self, num_batches, meters, prefix="")

Source from the content-addressed store, hash-verified

490
491class ProgressMeter(object):
492 def __init__(self, num_batches, meters, prefix=""):
493 self.batch_fmtstr = self._get_batch_fmtstr(num_batches)
494 self.meters = meters
495 self.prefix = prefix
496
497 def display(self, batch):
498 entries = [self.prefix + self.batch_fmtstr.format(batch)]

Callers

nothing calls this directly

Calls 1

_get_batch_fmtstrMethod · 0.95

Tested by

no test coverage detected