You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/07/02 18:17:05 UTC
[GitHub] roywei edited a comment on issue #8044: Fix the Test
test_operator_gpu.test_batchnorm_training
roywei edited a comment on issue #8044: Fix the Test test_operator_gpu.test_batchnorm_training
URL: https://github.com/apache/incubator-mxnet/issues/8044#issuecomment-401884526
running test on CPU also failed
```
numeric_eps=1e-3
atol=1e-3
rtol=0.16
```
```
MXNET_TEST_SEED=1679967765 nosetests -s --verbose test_operator.py:test_batchnorm_training
```
error message
```
FAIL: test_operator.test_batchnorm_training
----------------------------------------------------------------------
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 "/home/ubuntu/incubator-mxnet/tests/python/unittest/common.py", line 157, in test_new
orig_test(*args, **kwargs)
File "/home/ubuntu/incubator-mxnet/tests/python/unittest/test_operator.py", line 1513, in test_batchnorm_training
check_batchnorm_training(stype)
File "/home/ubuntu/incubator-mxnet/tests/python/unittest/test_operator.py", line 1452, in check_batchnorm_training
check_numeric_gradient(test, in_location, mean_std, numeric_eps=1e-3, rtol=0.16, atol=1e-3)
File "/usr/local/lib/python3.5/dist-packages/mxnet/test_utils.py", line 914, in check_numeric_gradient
("NUMERICAL_%s"%name, "BACKWARD_%s"%name))
File "/usr/local/lib/python3.5/dist-packages/mxnet/test_utils.py", line 493, in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
Error 1.512148 exceeds tolerance rtol=0.160000, atol=0.001000. Location of maximum error:(0, 1, 1, 0), a=-0.003599, b=-0.001680
NUMERICAL_data: array([[[[-3.7810206 , 1.0989904 ],
[-2.3602843 , -1.011908 ]],
...
BACKWARD_data: array([[[[-3.7802846 , 1.0991576 ],
[-2.3593504 , -1.011742 ]],
...
-------------------- >> begin captured logging << --------------------
common: INFO: Setting module np/mx/python random seeds, use MXNET_MODULE_SEED=1248290397 to reproduce.
common: WARNING: *** test-level seed set: all "@with_seed()" tests run deterministically ***
common: INFO: Setting test np/mx/python random seeds, use MXNET_TEST_SEED=1679967765 to reproduce.
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 1 test in 0.469s
FAILED (failures=1)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services