is_native_dtype#
- ivy.is_native_dtype(dtype_in, /)[source]#
Determine whether the input dtype is a Native dtype.
- Parameters:
dtype_in (
Union
[Dtype
,NativeDtype
]) – Determine whether the input data type is a native data type object.- Return type:
bool
- Returns:
ret – Boolean, whether or not dtype_in is a native data type.
Examples
>>> ivy.set_backend('numpy') >>> ivy.is_native_dtype(np.int32) True
>>> ivy.set_backend('numpy') >>> ivy.is_native_array(ivy.float64) False