spdl.pipeline.TaskPerfStats

class TaskPerfStats(num_tasks: int, num_failures: int, ave_time: float)[source]

Performance statistics of a task measured by TaskStatsHook.

See also

Attributes

num_tasks

The number of tasks invoked.

num_failures

The number of tasks failed.

ave_time

The average execution time (in second) of successful tasks.

ave_time: float

The average execution time (in second) of successful tasks.

num_failures: int

The number of tasks failed.

num_tasks: int

The number of tasks invoked.