tvm_tirx.testing.assert_allclose#
- tvm_tirx.testing.assert_allclose(actual, desired, rtol=1e-7, atol=1e-7, verbose=True)#
Version of np.testing.assert_allclose with atol and rtol fields set in reasonable defaults.
Arguments actual and desired are not interchangeable, since the function compares the abs(actual-desired) with atol+rtol*abs(desired). Since we often allow desired to be close to zero, we generally want non-zero atol.