MCPcopy Index your code
hub / github.com/thuml/Transfer-Learning-Library / __init__

Method __init__

tllib/utils/meter.py:83–86  ·  view source on GitHub ↗
(self, num_batches, meters, prefix="")

Source from the content-addressed store, hash-verified

81
82class ProgressMeter(object):
83 def __init__(self, num_batches, meters, prefix=""):
84 self.batch_fmtstr = self._get_batch_fmtstr(num_batches)
85 self.meters = meters
86 self.prefix = prefix
87
88 def display(self, batch):
89 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