MCPcopy Create free account
hub / github.com/THUDM/GLM / get_sample_writer

Function get_sample_writer

utils.py:37–41  ·  view source on GitHub ↗

Returns a tensorboard summary writer

(log_dir, iteration=0)

Source from the content-addressed store, hash-verified

35
36
37def get_sample_writer(log_dir, iteration=0):
38 """Returns a tensorboard summary writer
39 """
40 return SummaryWriter(
41 log_dir=log_dir, purge_step=iteration)
42
43
44def print_rank_0(message):

Callers 2

finetuneFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected