dpctl.tensor.allclose¶ dpctl.tensor.allclose(a1, a2, atol=1e-8, rtol=1e-5, equal_nan=False)[source]¶ Returns True if two arrays are element-wise equal within tolerances. The testing is based on the following elementwise comparison: abs(a - b) <= max(atol, rtol * max(abs(a), abs(b)))