MCPcopy Create free account
hub / github.com/drinkingcoder/FlowFormer-Official / write_dict

Method write_dict

core/utils/logger.py:44–49  ·  view source on GitHub ↗
(self, results)

Source from the content-addressed store, hash-verified

42 self.running_loss = {}
43
44 def write_dict(self, results):
45 if self.writer is None:
46 self.writer = SummaryWriter()
47
48 for key in results:
49 self.writer.add_scalar(key, results[key], self.total_steps)
50
51 def close(self):
52 self.writer.close()

Callers 1

trainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected