TQDMLoggerBackend
- class composer.loggers.tqdm_logger.TQDMLoggerBackend(config: Optional[Dict[str, Any]] = None)[source]
Bases:
composer.core.logging.base_backend.RankZeroLoggerBackend
Shows TQDM progress bars.
During training, the progress bar logs the batch and training loss. During validation, the progress bar logs the batch and validation accuracy.
Example output:
Epoch 1: 100%|██████████| 64/64 [00:01<00:00, 53.17it/s, loss/train=2.3023] Epoch 1 (val): 100%|██████████| 20/20 [00:00<00:00, 100.96it/s, accuracy/val=0.0995]
Note
It is currently not possible to show additional metrics. Custom metrics for the TQDM progress bar will be supported in a future version.
- Parameters
config (dict or None, optional) – Trainer configuration. If provided, it is printed to the terminal as YAML.
- eval_after_forward(state: State, logger: Logger) None [source]
Called on the
EVAL_AFTER_FORWARD
event.
- load_state_dict(state: composer.core.types.StateDict) None [source]
Restores the state of the object.
- Parameters
state (StateDict) – The state of the object, as previously returned by
state_dict()