MCPcopy
hub / github.com/deepspeedai/DeepSpeedExamples / write_summary_events

Function write_summary_events

BingBertSquad/utils.py:122–124  ·  view source on GitHub ↗
(summary_writer, summary_events)

Source from the content-addressed store, hash-verified

120 return SummaryWriter(log_dir=os.path.join(base, SUMMARY_WRITER_DIR_NAME, name))
121
122def write_summary_events(summary_writer, summary_events):
123 for event in summary_events:
124 summary_writer.add_scalar(event[0], event[1], event[2])
125
126def dump_gradient_norms(tag, param_groups, micro_step, global_step):
127 norm_groups = []

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected