keras/keras_core/testing/test_case.py
2023-04-09 12:21:45 -07:00

8 lines
197 B
Python

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)