MCPcopy
hub / github.com/thuml/Transfer-Learning-Library / _get_batch_fmtstr

Method _get_batch_fmtstr

tllib/utils/meter.py:93–96  ·  view source on GitHub ↗
(self, num_batches)

Source from the content-addressed store, hash-verified

91 print('\t'.join(entries))
92
93 def _get_batch_fmtstr(self, num_batches):
94 num_digits = len(str(num_batches // 1))
95 fmt = '{:' + str(num_digits) + 'd}'
96 return '[' + fmt + '/' + fmt.format(num_batches) + ']'
97
98

Callers 1

__init__Method · 0.95

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected