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