Skip to content

Commit

Permalink
Update ml_dtypes/_finfo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
awf authored Sep 28, 2023
1 parent cbdec47 commit 09a074f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ml_dtypes/_finfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self):
class _Float8IEEEMachArLike:

def __init__(self, p):
# TODO parametrize
# These are hard-coded in order to independently test against the computed values in the C++ implementation
if p == 3:
smallest_normal = float.fromhex("0x1p-15")
self.smallest_normal = float8_ieee_p3(smallest_normal)
Expand Down

0 comments on commit 09a074f

Please sign in to comment.