Skip to content

Commit

Permalink
Update math_test.py
Browse files Browse the repository at this point in the history
lowered the test values to 1e5
  • Loading branch information
sqali authored Sep 22, 2023
1 parent 3f199c3 commit 0307b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_core/ops/math_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 0307b74

Please sign in to comment.