MCPcopy Create free account
hub / github.com/pytorch/examples / __str__

Method __str__

imagenet/main.py:471–473  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

469 self.avg = self.sum / self.count
470
471 def __str__(self):
472 fmtstr = '{name} {val' + self.fmt + '} ({avg' + self.fmt + '})'
473 return fmtstr.format(**self.__dict__)
474
475 def summary(self):
476 fmtstr = ''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected