int | None
Returns a pointer to the task’s CUDA stream (represented as an
integer).
If the current task is not a GPU task, or does not have GPU support
enabled, this method returns None.
- Returns:
The CUDA stream.
- Return type:
int | None
- Type:
TaskContext.task_stream