legate.core.AutoTask.add_scalar_arg#
- AutoTask.add_scalar_arg( ) void #
Adds a by-value argument to the task
- Parameters:
value (Any) – Scalar value or a tuple of scalars (but no nested tuples)
dtype (Dtype) – Data type descriptor for the scalar value. A descriptor
(T,)
means that the value is a tuple of elements of typeT
(i.e., equivalent toarray_type(T, len(value))
).
- Raises:
RuntimeError – If the AutoTask has been previously locked by a PyTask.