MCPcopy
hub / github.com/facebookresearch/jepa / log

Method log

src/utils/logging.py:58–62  ·  view source on GitHub ↗
(self, *argv)

Source from the content-addressed store, hash-verified

56 print(v[1], end='\n', file=f)
57
58 def log(self, *argv):
59 with open(self.fname, '+a') as f:
60 for i, tv in enumerate(zip(self.types, argv), 1):
61 end = ',' if i < len(argv) else '\n'
62 print(tv[0] % tv[1], end=end, file=f)
63
64
65class AverageMeter(object):

Callers 6

mainFunction · 0.95
mainFunction · 0.95
_get_param_spatial_cropFunction · 0.80
get_paramsMethod · 0.80
__init__Method · 0.80
log_statsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected