legate.core.context.Context.get_tunable#

Context.get_tunable(tunable_id: int, dtype: DataType, mapper_id: int = 0) npt.NDArray[Any]#

Queries a tunable parameter to the mapper.

Parameters:
  • tunable_id (int) – Tunable id. Local to each mapper.

  • dtype (DataType) – Value type

  • mapper_id (int) – Id of the mapper that should handle the tunable query

Returns:

A NumPy array holding the value of the tunable parameter

Return type:

np.ndarray