(self, batch)
| 103 | self.prefix = prefix |
| 104 | |
| 105 | def display(self, batch): |
| 106 | entries = [self.prefix + self.batch_fmtstr.format(batch)] |
| 107 | entries += [str(meter) for meter in self.meters] |
| 108 | logger.info(" ".join(entries)) |
| 109 | |
| 110 | def _get_batch_fmtstr(self, num_batches): |
| 111 | num_digits = len(str(num_batches // 1)) |