MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / dump_stats

Method dump_stats

custom_writer.py:43–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 self.tag_mode_exceptions = {'add_histogram', 'add_embedding'} # TODO : Test these two funcs.
42
43 def dump_stats(self):
44 with open(f"{self.log_dir}/log", "w") as f:
45 json.dump(self.stats, f,
46 indent=4,
47 ensure_ascii=False,
48 separators=(",", ": "),
49 )
50
51 def set_epoch(self, epoch, mode):
52 '''

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected