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 2020/01/20 02:59:07 UTC

[GitHub] [incubator-mxnet] heaseny opened a new issue #17384: Error in numpy unit test

heaseny opened a new issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384
 
 
   ## Description
   When I ran the test  nosetests -s -v tests/python/unittest/test_numpy_interoperability.py:test_np_fallback_ops 
   , it raised error "TypeError: No loop matching the specified signature and casting
   was found for ufunc inv"
   
   ### Error Message
   nosetests -s -v tests/python/unittest/test_numpy_interoperability.py:test_np_fallback_ops
   test_numpy_interoperability.test_np_fallback_ops ... [INFO] Setting test np/mx/python random seeds, use MXNET_TEST_SEED=94434600 to reproduce.
   ERROR
   
   ======================================================================
   ERROR: test_numpy_interoperability.test_np_fallback_ops
   ----------------------------------------------------------------------
   Traceback (most recent call last):
     File "/home/mxnet/anacondaenv/anaconda3_mxnet/envs/mxnet_daily_py3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
       self.test(*self.arg)
     File "/home/mxnet/workspace/source/intel-mxnet/tests/python/unittest/common.py", line 215, in test_new
       orig_test(*args, **kwargs)
     File "/home/mxnet/anacondaenv/anaconda3_mxnet/envs/mxnet_daily_py3/lib/python3.6/site-packages/mxnet-1.6.0-py3.6.egg/mxnet/util.py", line 321, in _with_np_shape
       return func(*args, **kwargs)
     File "/home/mxnet/anacondaenv/anaconda3_mxnet/envs/mxnet_daily_py3/lib/python3.6/site-packages/mxnet-1.6.0-py3.6.egg/mxnet/util.py", line 505, in _with_np_array
       return func(*args, **kwargs)
     File "/home/mxnet/workspace/source/intel-mxnet/tests/python/unittest/test_numpy_interoperability.py", line 1916, in test_np_fallback_ops
       check_interoperability(op_list)
     File "/home/mxnet/workspace/source/intel-mxnet/tests/python/unittest/test_numpy_interoperability.py", line 1881, in check_interoperability
       _check_interoperability_helper(name, *workload['args'], **workload['kwargs'])
     File "/home/mxnet/workspace/source/intel-mxnet/tests/python/unittest/test_numpy_interoperability.py", line 1851, in _check_interoperability_helper
       out = onp_op(*args, **kwargs)
     File "/home/mxnet/anacondaenv/anaconda3_mxnet/envs/mxnet_daily_py3/lib/python3.6/site-packages/numpy/linalg/linalg.py", line 1730, in cond
       invx = _umath_linalg.inv(x, signature=signature)
   TypeError: No loop matching the specified signature and casting
   was found for ufunc inv
   -------------------- >> begin captured logging << --------------------
   root: INFO: NumPy-shape semantics has been activated in your code. This is required for creating and manipulating scalar and zero-size tensors, which were not supported in MXNet before, as in the official NumPy library. Please DO NOT manually deactivate this semantics while using `mxnet.numpy` and `mxnet.numpy_extension` modules.
   common: INFO: Setting test np/mx/python random seeds, use MXNET_TEST_SEED=94434600 to reproduce.
   --------------------- >> end captured logging << ---------------------
   
   ----------------------------------------------------------------------
   Ran 1 test in 0.005s
   
   FAILED (errors=1)
   Dispatch test: heaviside
   Dispatch test: spacing
   Dispatch test: linalg.cond
   
   
   ## To Reproduce
   ### Steps to reproduce
   nosetests -s -v tests/python/unittest/test_numpy_interoperability.py:test_np_fallback_ops
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] haojin2 commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
haojin2 commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-580906058
 
 
   Since it's an issue related to numpy itself, we can probably change our test to skip this test for earlier numpy versions without having to change the requirements for just this one test, what do you think?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] TaoLv commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
TaoLv commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-578503102
 
 
   Can we close this issue now or do you think we need another fix? I notice that mxnet requires numpy 1.16.0 - 2.0.0: https://github.com/apache/incubator-mxnet/blob/master/python/setup.py#L33

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] heaseny commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
heaseny commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-578337820
 
 
   Thank for your solution, I tried and found  the case could be successfull with latest numpy.
   
   
   ------------------
   Thanks,
   Xuecun
   
   -------- 原始邮件 --------
   发件人:Hao Jin <no...@github.com>
   时间:2020年1月25日 05:56
   收件人:apache/incubator-mxnet <in...@noreply.github.com>
   抄送:heaseny <ya...@aliyun.com>,Mention <me...@noreply.github.com>
   主题:Re: [apache/incubator-mxnet] Error in numpy unit test (#17384)
   
   >@heaseny Hi, I just got the chance to try this out, and I was able to hit the same error, I'll be working on a fix for this, thanks for reporting the issue!
   >
   >—
   >You are receiving this because you were mentioned.
   >Reply to this email directly, view it on GitHub, or unsubscribe.
   >
   >[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/apache/incubator-mxnet/issues/17384?email_source=notifications\u0026email_token=AIR7JIWEN7NUJB3NAEL4F5TQ7NPW7A5CNFSM4KI5OIXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ4GYHI#issuecomment-578317341", "url": "https://github.com/apache/incubator-mxnet/issues/17384?email_source=notifications\u0026email_token=AIR7JIWEN7NUJB3NAEL4F5TQ7NPW7A5CNFSM4KI5OIXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ4GYHI#issuecomment-578317341", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] haojin2 commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
haojin2 commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-578317341
 
 
   @heaseny Hi, I just got the chance to try this out, and I was able to hit the same error, I'll be working on a fix for this, thanks for reporting the issue!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] heaseny commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
heaseny commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-578544269
 
 
   I think the requirement of numpy in setup.py should  be updated due to this issue. Can I get further feedback?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] haojin2 commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
haojin2 commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-576454166
 
 
   Hi, I'm not able to reproduce with latest master branch, which branch were you using? and what kind of build are you using?
   ```
   nosetests -s -v tests/python/unittest/test_numpy_interoperability.py:test_np_fallback_ops
   test_numpy_interoperability.test_np_fallback_ops ... Dispatch test: heaviside
   Dispatch test: spacing
   Dispatch test: linalg.cond
   ok
   
   ----------------------------------------------------------------------
   Ran 1 test in 0.007s
   
   OK
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] heaseny commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
heaseny commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-581006263
 
 
   Thanks for your suggestion, this makes sense, I will close this issue.
   
   
   ------------------
   Thanks,
   Xuecun
   
   -------- 原始邮件 --------
   发件人:Hao Jin <no...@github.com>
   时间:2020年2月1日 04:50
   收件人:apache/incubator-mxnet <in...@noreply.github.com>
   抄送:heaseny <ya...@aliyun.com>,Mention <me...@noreply.github.com>
   主题:Re: [apache/incubator-mxnet] Error in numpy unit test (#17384)
   
   >Since it's an issue related to numpy itself, we can probably change our test to skip this test for earlier numpy versions without having to change the requirements for just this one test, what do you think?
   >
   >—
   >You are receiving this because you were mentioned.
   >Reply to this email directly, view it on GitHub, or unsubscribe.
   >
   >[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/apache/incubator-mxnet/issues/17384?email_source=notifications\u0026email_token=AIR7JIRCPDA5AKOIEKG7L53RASFJLA5CNFSM4KI5OIXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKP6YSQ#issuecomment-580906058", "url": "https://github.com/apache/incubator-mxnet/issues/17384?email_source=notifications\u0026email_token=AIR7JIRCPDA5AKOIEKG7L53RASFJLA5CNFSM4KI5OIXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKP6YSQ#issuecomment-580906058", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] heaseny closed issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
heaseny closed issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] haojin2 commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
haojin2 commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-578335214
 
 
   @heaseny Have you tried with the latest 1.18 version of numpy? I think it should solve the issue, after some investigation I found that the error is caused by numpy 1.17 being not able to handle the same input case.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] TaoLv commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
TaoLv commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-581036652
 
 
   > Since it's an issue related to numpy itself, we can probably change our test to skip this test for earlier numpy versions without having to change the requirements for just this one test, what do you think?
   
   I‘m afraid it's a real issue that the users may encounter in their use cases.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] heaseny commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
heaseny commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-576484737
 
 
   The test can fail with  numpy==1.16.4, so should I upgrade my numpy?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [incubator-mxnet] haojin2 commented on issue #17384: Error in numpy unit test

Posted by GitBox <gi...@apache.org>.
haojin2 commented on issue #17384: Error in numpy unit test
URL: https://github.com/apache/incubator-mxnet/issues/17384#issuecomment-576485062
 
 
   I have 1.18.1, I'll try with my numpy downgraded.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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