MCPcopy Create free account
hub / github.com/DingXiaoH/RepVGG / __init__

Method __init__

utils.py:37–40  ·  view source on GitHub ↗
(self, num_batches, meters, prefix="")

Source from the content-addressed store, hash-verified

35
36class ProgressMeter(object):
37 def __init__(self, num_batches, meters, prefix=""):
38 self.batch_fmtstr = self._get_batch_fmtstr(num_batches)
39 self.meters = meters
40 self.prefix = prefix
41
42 def display(self, batch):
43 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