mlx.core.finfo

mlx.core.finfo#

class finfo(*args, **kwargs)#

取得浮點數型別資訊。

__init__(self, arg: Dtype, /) None#

方法

__init__(self, arg, /)

Attributes

bits

The number of bits occupied by the type.

dtype

The Dtype.

eps

The difference between 1.0 and the next smallest representable number larger than 1.0.

max

The largest representable number.

min

The smallest representable number.

smallest_normal

The smallest positive normal number.