d426585999658838663ba4fa438f77f3b78e324d,mmcv/runner/hooks/logger/tensorboard.py,TensorboardLoggerHook,log,#TensorboardLoggerHook#Any#,31
Before Change
if var in ["time", "data_time"]:
continue
tag = "{}/{}".format(var, runner.mode)
self.writer.add_scalar(tag, runner.log_buffer.output[var],
runner.iter)
@master_only
def after_run(self, runner):
self.writer.close()
After Change
continue
tag = "{}/{}".format(var, runner.mode)
record = runner.log_buffer.output[var]
if isinstance(record, str):
self.writer.add_text(tag, record, runner.iter)
else:
self.writer.add_scalar(tag, runner.log_buffer.output[var],
runner.iter)
@master_only
def after_run(self, runner):
self.writer.close()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: open-mmlab/mmcv
Commit Name: d426585999658838663ba4fa438f77f3b78e324d
Time: 2019-03-25
Author: chenkaidev@gmail.com
File Name: mmcv/runner/hooks/logger/tensorboard.py
Class Name: TensorboardLoggerHook
Method Name: log
Project Name: facebookresearch/ParlAI
Commit Name: 892b037877b91d47df552079fa4463ee742104ee
Time: 2018-05-31
Author: kulikov@fb.com
File Name: parlai/scripts/train_model.py
Class Name: TrainLoop
Method Name: validate
Project Name: facebookresearch/ParlAI
Commit Name: 892b037877b91d47df552079fa4463ee742104ee
Time: 2018-05-31
Author: kulikov@fb.com
File Name: parlai/scripts/train_model.py
Class Name: TrainLoop
Method Name: log