dpctl.tensor.iinfo

dpctl.tensor.iinfo(dtype)[source]

Returns machine limits for integer data types.

Parameters:

dtype (dtype, usm_ndarray) – integer dtype or an array with integer dtype.

Returns:

An object with the following attributes:

  • bits: int

    number of bits occupied by the data type

  • max: int

    largest representable number.

  • min: int

    smallest representable number.

  • dtype: dtype

    integer data type.

Return type:

iinfo_object