Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added erf op to math.py #908

Closed
wants to merge 14 commits into from
Prev Previous commit
Update math_test.py
lowered the test values to 1e5
  • Loading branch information
sqali authored Sep 22, 2023
commit 0307b744f0c318614068c950da02ec2ede4e5d24
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