concepts.dsl.executors.tensor_value_executor.compose_bvdict_args#
- compose_bvdict_args(arguments_def, arguments, state=None)[source]#
Compose a bounded variable dict, but from a list of arguments. This function is useful when we want to compose a bounded variable dict from a list of arguments to a function.
- Parameters:
arguments_def (Sequence[Variable]) – the definition of the arguments, including their name and dtypes.
arguments (Sequence[str | int | slice | bool | float | Tensor | TensorValue | ObjectConstant | StateObjectReference]) – the actual arguments.
state (TensorState | None) – the state.
- Returns:
a bounded variable dictionary.
- Return type:
Dict[str, Dict[str, StateObjectReference | slice | TensorValue]]