From b2e92d44fa407bff95e549b55989b7b3269bf4a3 Mon Sep 17 00:00:00 2001 From: chenyu Date: Wed, 6 Mar 2024 17:29:19 -0500 Subject: [PATCH] skip METAL sin test in test_dtype_alu (#3633) revert this part of #3629. this is flaky --- test/test_dtype_alu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_dtype_alu.py b/test/test_dtype_alu.py index 2e398bf507..6fa9754b79 100644 --- a/test/test_dtype_alu.py +++ b/test/test_dtype_alu.py @@ -38,7 +38,8 @@ unary_operations = [(Tensor.exp, np.exp), (Tensor.log, np.log), operator.neg, (T #binary_operations += [(Tensor.maximum, np.maximum)] # TODO: CUDACPU segfaults on sin -if getenv("CUDACPU"): unary_operations.remove((Tensor.sin, np.sin)) +# TODO: METAL sin is flaky for float16 +if getenv("CUDACPU") or Device.DEFAULT == "METAL": unary_operations.remove((Tensor.sin, np.sin)) class ht: float64 = strat.floats(width=64, allow_subnormal=False)