Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/thuml/Transfer-Learning-Library
/ __str__
Method
__str__
tllib/utils/meter.py:36–38 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
34
self.avg = self.sum / self.count
35
36
def
__str__(self):
37
fmtstr =
'{name} {val'
+ self.fmt +
'} ({avg'
+ self.fmt +
'})'
38
return
fmtstr.format(**self.__dict__)
39
40
41
class
AverageMeterDict(object):
Callers
nothing calls this directly
Calls
1
format
Method · 0.80
Tested by
no test coverage detected