-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Flaky test test_quantization_mkldnn.test_requantize_int32_to_int8 #11747
Comments
Thannks for filing this issue. We will investigate this Flaky test |
Cannot reproduce locally. By the way, why just python3 fail? |
@xinyu-intel: This is a rarely occurring non-deterministic failure, so the fact it happens in python3 as opposed to python2, (or any other language) is probably just a coincidence. |
Hi, please run the following commands:
The output will be:
This output is entirely deterministic given the seed. For reference, I'm running on a g3.8xlarge. |
sorry, I missed this one previously. |
@KellenSunderland @marcoabreu @reminisce Hi, I think we should set the absolute error to one ULP. When we check whether the int8 data are equal, we should set the absolute error to 1. |
Great, thanks a lot @xinyu-intel ! |
#16692 unrelated PR
|
@xinyu-intel please take a look for flaky test. |
Still flaky. For unrelated PR #17993 |
Hi, @ChaiBapchya. Perhaps #16709 was not backported to the 1.6.x branch. Would you mind confirming that? If so, I think we need to backport the patch to 1.6.x as well along with #17993. |
Backported that patch. Thanks for pointing it out. Weird how it didn't get selected in the previous cherry-picks. |
Example Failure
http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/incubator-mxnet/detail/master/1175/pipeline
Output
FAIL: test_quantization_mkldnn.test_requantize_int32_to_int8
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/usr/local/lib/python3.5/dist-packages/nose/util.py", line 620, in newfunc
return func(*arg, **kw)
File "/work/mxnet/tests/python/mkl/../unittest/common.py", line 157, in test_new
orig_test(*args, **kwargs)
File "/work/mxnet/tests/python/mkl/../quantization/test_quantization.py", line 127, in test_requantize_int32_to_int8
check_requantize((3, 4, 10, 10))
File "/work/mxnet/tests/python/mkl/../quantization/test_quantization.py", line 123, in check_requantize
assert_almost_equal(qdata_int8.asnumpy(), qdata_int8_np)
File "/work/mxnet/python/mxnet/test_utils.py", line 493, in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
Error 1562.500000 exceeds tolerance rtol=0.000010, atol=0.000000. Location of maximum error:(0, 3, 8, 0), a=-63.000000, b=-64.000000
a: array([[[[ -72, 106, 79, ..., 73, -43, 126],
[ -74, -118, -46, ..., -18, 44, -37],
[ 0, 13, -93, ..., -117, -123, -56],...
b: array([[[[ -72, 106, 79, ..., 73, -43, 126],
[ -74, -118, -46, ..., -18, 44, -37],
[ 0, 13, -93, ..., -117, -123, -56],...
-------------------- >> begin captured logging << --------------------
common: INFO: Setting test np/mx/python random seeds, use MXNET_TEST_SEED=2054829694 to reproduce.
--------------------- >> end captured logging << ---------------------
The text was updated successfully, but these errors were encountered: