Exemple #1
0
 def run_test(arr, *args, **kwargs):
     for fn in self.array_transforms:
         arr = fn(arr)
         self.match(array_ops.all(arr, *args, **kwargs),
                    np.all(arr, *args, **kwargs))
         self.match(array_ops.any(arr, *args, **kwargs),
                    np.any(arr, *args, **kwargs))
Exemple #2
0
def allclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False):
    return array_ops.all(
        isclose(a, b, rtol=rtol, atol=atol, equal_nan=equal_nan))