dpctl.tensor.finfo¶
- dpctl.tensor.finfo(type)[source]¶
Returns machine limits for floating-point data types.
- Parameters:
dtype (dtype, usm_ndarray) – floating-point dtype or an array with floating point data type. If complex, the information is about its component data type.
- Returns:
an object have the following attributes:
- bits: int
number of bits occupied by dtype.
- eps: float
difference between 1.0 and the next smallest representable real-valued floating-point number larger than 1.0 according to the IEEE-754 standard.
- max: float
largest representable real-valued number.
- min: float
smallest representable real-valued number.
- smallest_normal: float
smallest positive real-valued floating-point number with full precision.
- dtype: dtype
real-valued floating-point data type.
- Return type:
finfo_object