spdl.dataloader.TaskStatsHook¶
- class TaskStatsHook(name: str, concurrency: int, interval: float | None = None)[source]¶
Track the task runtimes and success rate.
- Parameters:
name – Nmae of the stage. Only used for logging.
concurrency – Concurrency of the stage. Only used for logging.
Methods
Track the stage runtime and log the task stats.
Track task runtime and success rate.