MCPcopy Create free account
hub / github.com/SooLab/CGFormer / __init__

Method __init__

utils/misc.py:100–103  ·  view source on GitHub ↗
(self, num_batches, meters, prefix="")

Source from the content-addressed store, hash-verified

98
99class ProgressMeter(object):
100 def __init__(self, num_batches, meters, prefix=""):
101 self.batch_fmtstr = self._get_batch_fmtstr(num_batches)
102 self.meters = meters
103 self.prefix = prefix
104
105 def display(self, batch):
106 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