experiment.tensorboard_x module¶
-
class
experiment.tensorboard_x.
TensorBoardXLogHandler
(summary_writer, title='Logging', *args, **kwds)[source]¶ Bases:
logging.Handler
Logging handler that logs to a TensorBoardX instance.
Parameters: - summary_writer (tensorboard.SummaryWriter) – The summarywriter to log to.
- title (string) – Title/tag to write to.
-
experiment.tensorboard_x.
monitor_gpu
(summary_writer, gpu_index=None, xtick_size=100)[source]¶ Monitor the memory and utilization of a GPU.
Parameters: - env (str) – The visdom environment to log to.
- gpu_index (int) – The GPU to monitor.
-
experiment.tensorboard_x.
write_conf
(summary_writer, args=None, text=None)[source]¶ Write configuration to the Visdom env.
Parameters: - summary_writer (tensorboard.SummaryWriter) – The summarywriter to log to.
- args (Namespace, optional) – The argument namespace returned by argparse.
- text (string, optional) – Configuration as text block.