Computes the times for high-level operations in the training loops.
Details
Records are saved in ctx$records$profile
. Times are stored as seconds.
Data is stored in the following structure:
fit time for the entire fit procedure.
epoch times per epoch
(train/valid)_batch time per batch of data processed, including data acquisition and step.
(train/valid)_step time per step (training or validation step) - only the model step. (not including data acquisition and preprocessing)
Note
In general you don't need to use these callback by yourself because it's always
included by default in fit.luz_module_generator()
.
See also
Other luz_callbacks:
luz_callback_csv_logger()
,
luz_callback_early_stopping()
,
luz_callback_interrupt()
,
luz_callback_keep_best_model()
,
luz_callback_lr_scheduler()
,
luz_callback_metrics()
,
luz_callback_mixup()
,
luz_callback_model_checkpoint()
,
luz_callback_progress()
,
luz_callback_train_valid()
,
luz_callback()