MCPcopy Create free account
hub / github.com/TPCD/DCCL / log_state

Method log_state

project_utils/visualization_utils.py:885–894  ·  view source on GitHub ↗

Gathers the stats from self.trainer.stats and passes them into self.log, as a list

(self, state)

Source from the content-addressed store, hash-verified

883 return _viz_logger
884
885 def log_state(self, state):
886 """ Gathers the stats from self.trainer.stats and passes them into
887 self.log, as a list """
888 results = []
889 for field_idx, field in enumerate(self.fields):
890 parent, stat = None, state
891 for f in field:
892 parent, stat = stat, stat[f]
893 results.append(stat)
894 self.log(*results)
895
896
897class VisdomSaver(object):

Callers

nothing calls this directly

Calls 1

logMethod · 0.95

Tested by

no test coverage detected