legate.core.ManualTask.add_scalar_arg#
- ManualTask.add_scalar_arg(self, value: Any, dtype: Type | tuple[Type, ...] | None = None) 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))
).