From 0307b744f0c318614068c950da02ec2ede4e5d24 Mon Sep 17 00:00:00 2001 From: Sayed Qaiser Ali <66676360+sqali@users.noreply.github.com> Date: Fri, 22 Sep 2023 22:42:20 +0530 Subject: [PATCH] Update math_test.py lowered the test values to 1e5 --- keras_core/ops/math_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras_core/ops/math_test.py b/keras_core/ops/math_test.py index 96cc7022a..32e9689a2 100644 --- a/keras_core/ops/math_test.py +++ b/keras_core/ops/math_test.py @@ -865,7 +865,7 @@ def test_erf_operation_dtype(self): def test_erf_operation_edge_cases(self): # Test for edge cases - edge_values = np.array([1e10, -1e10, 1e-10, -1e-10], dtype=np.float64) + edge_values = np.array([1e5, -1e5, 1e-5, -1e-5], dtype=np.float64) expected_edge_output = (2 / np.sqrt(np.pi)) * np.vectorize(math.erf)( edge_values )