Table Of Contents
Table Of Contents

assert_almost_equal

mxnet.test_utils.assert_almost_equal(a, b, rtol=None, atol=None, names=('a', 'b'), equal_nan=False)[source]

Test that two numpy arrays are almost equal. Raise exception message if not.

Parameters:
  • a (np.ndarray) –
  • b (np.ndarray) –
  • threshold (None or float) – The checking threshold. Default threshold will be used if set to None.