dpnp.tensor.isdtype

dpnp.tensor.isdtype(dtype, kind)[source]

Returns a boolean indicating whether a provided dtype is of a specified data type kind.

See array API for more information.

Parameters:
  • dtype (dtype) -- Data type to test.

  • kind ({dtype, str, tuple}) -- Data type kind.

Returns:

out -- Whether the provided dtype is of the specified data type kind.

Return type:

bool