MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / __init__

Method __init__

deepspeed/monitor/tensorboard.py:15–25  ·  view source on GitHub ↗
(self, tensorboard_config)

Source from the content-addressed store, hash-verified

13class TensorBoardMonitor(Monitor):
14
15 def __init__(self, tensorboard_config):
16 super().__init__(tensorboard_config)
17 check_tb_availability()
18
19 self.summary_writer = None
20 self.enabled = tensorboard_config.enabled
21 self.output_path = tensorboard_config.output_path
22 self.job_name = tensorboard_config.job_name
23
24 if self.enabled and dist.get_rank() == 0:
25 self.get_summary_writer()
26
27 def get_summary_writer(self, base=os.path.join(os.path.expanduser("~"), "tensorboard")):
28 if self.enabled and dist.get_rank() == 0:

Callers

nothing calls this directly

Calls 3

get_summary_writerMethod · 0.95
check_tb_availabilityFunction · 0.85
get_rankMethod · 0.45

Tested by

no test coverage detected