The task hook function signature If warmup is enabled, the hook will be called twice, once for the warmup and once for the run.
Optional
the mode where the hook is being called
The task hook function signature If warmup is enabled, the hook will be called twice, once for the warmup and once for the run.