allclose

odl.allclose(x, y, rtol=1e-05, atol=1e-08, equal_nan=False)

Returns True if two arrays are element-wise equal within a tolerance. Note: This is not a Python Array API method, but it happens to work in Numpy and Pytorch.