keras/keras_core/testing/test_case.py

8 lines
197 B
Python
Raw Normal View History

2023-04-09 19:21:45 +00:00
import numpy as np
import unittest
class TestCase(unittest.TestCase):
def assertAllClose(self, x1, x2, atol=1e-7, rtol=1e-7):
np.testing.assert_allclose(x1, x2, atol=atol, rtol=rtol)