xlstm_jax.trainer.logger.tensorboard_logger#
Attributes#
Classes#
Configuration for the TensorBoard logger tool. |
|
Module Contents#
- xlstm_jax.trainer.logger.tensorboard_logger.LOGGER#
- class xlstm_jax.trainer.logger.tensorboard_logger.TensorBoardLoggerConfig#
Bases:
xlstm_jax.trainer.logger.base_logger.LoggerToolsConfigConfiguration for the TensorBoard logger tool.
- tb_flush_secs#
The frequency at which to flush the tensorboard logs.
- tb_max_queue#
The maximum number of items to queue before flushing.
- tb_new_style#
Whether to use the new style of logging. See PyTorch SummaryWriter documentation for more information.
- log_dir#
The directory to use for the logs. Is added to the log_path in the logger
- create(logger)#
Creates the TensorBoard logger tool.
- Parameters:
- Return type:
- class xlstm_jax.trainer.logger.tensorboard_logger.TensorBoardLogger(config, logger)#
Bases:
xlstm_jax.trainer.logger.base_logger.LoggerTool- Parameters:
config (TensorBoardLoggerConfig)
- config#
- config_to_log = None#
- logger#
- writer: torch.utils.tensorboard.SummaryWriter = None#
- log_config(config)#
Log the config to TensorBoard.
If the writer is not set up, the config will be saved and logged when the writer is set up.
- Parameters:
config (xlstm_jax.configs.ConfigDict | dict[str, xlstm_jax.configs.ConfigDict]) – The config to log.
- _log_config()#
Logs stored config to TensorBoard if writer is set up.
- setup()#
Set up the TensorBoard logger.
If the writer is already set up, this function skips the setup.
- log_metrics(metrics, step, epoch, mode)#
Log a single metric dictionary in the TensorBoard logger.