legate.core.task.VariantInvoker.__call__#

VariantInvoker.__call__()#

Invoke the given function by adapting a TaskContext to the parameters for the function.

Parameters:
  • ctx (TaskContext) – The Legate TaskContext which describes the task and holds the arguments for func.

  • func (UserFunction) – The resulting Python callable to invoke.

Notes

Generally the user should not call this method themselves, it is invoked as part of the Python task calling sequence.

Raises:

ValueError – If the signature of func does not match the configured signature of this VariantInvoker.