mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
lower test_transcendental fuzz test threshold for sin float64 (#5956)
This commit is contained in:
@@ -17,8 +17,8 @@ class TestTranscendentalMath(unittest.TestCase):
|
|||||||
@given(ht.float64, strat.sampled_from([(Tensor.exp, np.exp), (Tensor.log, np.log), (Tensor.sin, np.sin)]))
|
@given(ht.float64, strat.sampled_from([(Tensor.exp, np.exp), (Tensor.log, np.log), (Tensor.sin, np.sin)]))
|
||||||
def test_float64(self, x, op):
|
def test_float64(self, x, op):
|
||||||
if op[0] == Tensor.sin:
|
if op[0] == Tensor.sin:
|
||||||
# TODO: reduction does not work # 536870912.125 # 2914593.01171875 # 134217728.03125
|
# TODO: reduction does not work # 536870912.125 # 2914593.01171875 # 134217728.03125 # 230581075.65625
|
||||||
if abs(x) > 536870912: return
|
if abs(x) > 200_000_000: return
|
||||||
|
|
||||||
with Context(TRANSCENDENTAL=2):
|
with Context(TRANSCENDENTAL=2):
|
||||||
np.testing.assert_allclose(op[0](Tensor([x], dtype=dtypes.float64)).numpy(),
|
np.testing.assert_allclose(op[0](Tensor([x], dtype=dtypes.float64)).numpy(),
|
||||||
|
|||||||
Reference in New Issue
Block a user