Python class
finfo
finfo
class max.dtype.finfo(dtype)
Bases: object
Numerical properties of a floating point DType.
This is modeled after torch.finfo, providing bits, eps,
max, min, tiny, smallest_normal, and dtype
attributes for every MAX float dtype, including bfloat16, float8, and
float4 types that numpy cannot represent.
-
Parameters:
-
dtype (DType) – A floating-point
DTypeto query. -
Raises:
-
TypeError – If dtype is not a floating-point type.
bits
bits: int
dtype
dtype: DType
eps
eps: float
max
max: float
min
min: float
smallest_normal
property smallest_normal: float
Alias for tiny (torch.finfo compatibility).
tiny
tiny: float
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!