Skip to content

Commit 7f37aef

Browse files
committed
Increase tolerance to atol=1e-5
1 parent c6fc402 commit 7f37aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/utils/ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import keras
22

33

4-
def isclose(x1, x2, rtol=1e-5, atol=1e-8):
4+
def isclose(x1, x2, rtol=1e-5, atol=1e-5):
55
return keras.ops.abs(x1 - x2) <= atol + rtol * keras.ops.abs(x2)
66

77

8-
def allclose(x1, x2, rtol=1e-5, atol=1e-8):
8+
def allclose(x1, x2, rtol=1e-5, atol=1e-5):
99
return keras.ops.all(isclose(x1, x2, rtol, atol))
1010

1111

0 commit comments

Comments
 (0)