legate.core.task.VariantInvoker.prepare_call#
- VariantInvoker.prepare_call(
- self,
- AutoTask task,
- tuple args,
- dict kwargs,
- ConstraintSet constraints=None,
Prepare a list of arguments for task call.
- Parameters:
- Raises:
ValueError – If multiple arguments are given for a single argument. This may occur, for example, when a keyword argument overlaps with a positional argument.
TypeError – If the type of an argument does not match the expected type of the corresponding argument to the task, or if there are missing required parameters.
NameError – If a keyword argument does not exist in the function’s signature.
Notes
args
andkwargs
are not the usual expandedtuple
anddict
. Instead, they correspond to a literaltuple
anddict
respectively. That is:# Incorrect invoker.prepare_call( task, a, b, c, foo="bar", baz="bop" ) # Correct invoker.prepare_call( task, (a, b, c), {"foo" : "bar", "baz" : "bop"} )