legate.core.Type.from_numpy_dtype#

static Type.from_numpy_dtype(dtype: DTypeLike) Type#

Construct a Type object from a numpy dtype.

Parameters:

dtype (DTypeLike) – The numpy dtype.

Returns:

The deduced type.

Return type:

Type

Raises:

NotImplementedError – If type deduction fails.