MCPcopy Create free account
hub / github.com/pytorch/pytorch / logstr

Method logstr

caffe2/python/experiment_util.py:75–79  ·  view source on GitHub ↗
(self, str)

Source from the content-addressed store, hash-verified

73 self.external_loggers = []
74
75 def logstr(self, str):
76 with open(self.filename, "a") as f:
77 f.write(str + "\n")
78 f.close()
79 logging.getLogger("experiment_logger").info(str)
80
81 def log(self, input_count, batch_count, additional_values):
82 logdict = OrderedDict()

Callers 2

__init__Method · 0.95
logMethod · 0.95

Calls 3

infoMethod · 0.80
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected