MCPcopy Index your code
hub / github.com/Turing-Project/WriteGPT / build_report_manager

Function build_report_manager

LanguageNetwork/BERT/models/reporter.py:11–26  ·  view source on GitHub ↗
(opt)

Source from the content-addressed store, hash-verified

9
10
11def build_report_manager(opt):
12 if opt.tensorboard:
13 from tensorboardX import SummaryWriter
14 tensorboard_log_dir = opt.tensorboard_log_dir
15
16 if not opt.train_from:
17 tensorboard_log_dir += datetime.now().strftime("/%b-%d_%H-%M-%S")
18
19 writer = SummaryWriter(tensorboard_log_dir,
20 comment="Unmt")
21 else:
22 writer = None
23
24 report_mgr = ReportMgr(opt.report_every, start_time=-1,
25 tensorboard_writer=writer)
26 return report_mgr
27
28
29class ReportMgrBase(object):

Callers

nothing calls this directly

Calls 1

ReportMgrClass · 0.85

Tested by

no test coverage detected