(self, tensorboard_config)
| 13 | class 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: |
nothing calls this directly
no test coverage detected