Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Spatial transformer test case fails often #7645

Closed
rahul003 opened this issue Aug 28, 2017 · 5 comments
Closed

Spatial transformer test case fails often #7645

rahul003 opened this issue Aug 28, 2017 · 5 comments

Comments

@rahul003
Copy link
Member

Operating System: Linux
Compiler: gcc4.8
Package used: Python
MXNet commit hash (git rev-parse HEAD): 860dda2

Python version and distribution: 2.7 on gpu

Error Message:

======================================================================
FAIL: test_operator_gpu.test_spatial_transformer_with_type
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/workspace/tests/python/gpu/test_operator_gpu.py", line 654, in test_spatial_transformer_with_type
    check_consistency(sym, ctx_list)
  File "/workspace/python/mxnet/test_utils.py", line 1120, in check_consistency
    raise e
  File "/workspace/python/mxnet/test_utils.py", line 1115, in check_consistency
    assert_almost_equal(arr, gtarr, rtol=tol[dtypes[i]], atol=tol[dtypes[i]])
  File "/workspace/python/mxnet/test_utils.py", line 351, in assert_almost_equal
    raise AssertionError(msg)
nose.proxy.AssertionError: 
Items are not equal:
Error 3.625779 exceeds tolerance rtol=0.001000, atol=0.001000.  Location of maximum error:(0, 3, 6, 3), a=0.410997, b=0.416132
 a: array([[[[-31.50229263, -21.41567993,   6.15771866, ...,   2.8015573 ,
          -13.36835289, -23.15978813],
         [ -3.62330437, -38.62851715, -32.01438141, ...,  12.89842606,...
 b: array([[[[-31.51775551, -21.42281914,   6.15355921, ...,   2.80197096,
          -13.37347221, -23.16914177],
         [ -3.62049437, -38.64873505, -32.03084564, ...,  12.90172482,...
-------------------- >> begin captured stdout << ---------------------
Train Err: ctx 1 vs ctx 0 at data

--------------------- >> end captured stdout << ----------------------

Minimum reproducible example

This test fails intermittently on gpu with mklml or cudnn. In the last 30 builds on master it has failed 10+ times. Sometimes it fails with mklml and sometimes with cudnn.
Example to the test failure on build
https://builds.apache.org/blue/organizations/jenkins/incubator-mxnet/detail/master/258/pipeline

Steps to reproduce

  1. make DEV=1 USE_PROFILER=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1 USE_CPP_PACKAGE=1 -j8

  2. PYTHONPATH=./python/ nosetests --verbose tests/python/gpu/test_operator_gpu.py:test_spatial_transformer_with_type

@rahul003 rahul003 changed the title Test case fails often Spatial transformer test case fails often Aug 28, 2017
@rahul003
Copy link
Member Author

@tornadomeet Could you please check the testcase?

@tornadomeet
Copy link
Contributor

@rahul003 sorry, i'll check it, you can skip this test before fixed.

@szha
Copy link
Member

szha commented Nov 28, 2017

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!
Also, do please check out our forum (and Chinese version) for general "how-to" questions.

@szha szha closed this as completed Nov 28, 2017
@rahul003
Copy link
Member Author

Please reopen this as it hasn't been fixed

@larroy
Copy link
Contributor

larroy commented Jul 20, 2018

Still failing #11839

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants