You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2022/03/16 04:22:07 UTC

[GitHub] [incubator-mxnet] DickJC123 opened a new issue #20963: array_api_tests unittest failure on macosx- may be mxnet.numpy.eye() misbehavior or Cython enablement issue

DickJC123 opened a new issue #20963:
URL: https://github.com/apache/incubator-mxnet/issues/20963


   ## Description
   I'm trying to understand the following failure in the array_api_tests on macosx: https://github.com/apache/incubator-mxnet/runs/5560545610?check_suite_focus=true
   
   The failing test case is strange: mxnet.numpy.eye(n_rows=0, n_cols=None, k=-9223372036854775809, dtype=dtype('int8'))
   It could be the test is looking for both mxnet.numpy.eye and the 'golden standard' to match in producing an error due to the k value of approximately -sys.maxsize.
   
   mxnet.numpy produces here: 
   ```
       return _api_internal.eye(N, M, int(k), device, dtype)
   mxnet/_ffi/_cython/./function.pxi:192: in mxnet._ffi._cy3.core.FunctionBase.__call__
       ???
   mxnet/_ffi/_cython/./function.pxi:136: in mxnet._ffi._cy3.core.FuncCall
       ???
   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
   
   >   ???
   E   OverflowError: Python int too large to convert to C long
   ```
   
   But the other possible issue is, on macosx, is Cython properly disabled?  One would think that it should be because of the MXNET_ENABLE_CYTHON=0 line and comment here for the corresponding centos cpu testing:
   
   https://github.com/apache/incubator-mxnet/blob/master/ci/docker/runtime_functions.sh#L879-L884
   
   However, the macosx run script uses MXNET_ENFORCE_CYTHON, which actually only effects whether an error is raised if MXNET_ENABLE_CYTHON=1 and Cython is not available.  Thus, on macosx, Cython looks to be still enabled.  Should MXNET_ENFORCE_CYTHON be instead MXNET_ENABLE_CYTHON in the lines for the macosx script here:
   
   https://github.com/apache/incubator-mxnet/blob/master/.github/workflows/os_x_staticbuild.yml#L50-L67
   
   
   Thoughts @barry-jin?
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [incubator-mxnet] barry-jin commented on issue #20963: array_api_tests unittest failure on macosx- may be mxnet.numpy.eye() misbehavior or Cython enablement issue

Posted by GitBox <gi...@apache.org>.
barry-jin commented on issue #20963:
URL: https://github.com/apache/incubator-mxnet/issues/20963#issuecomment-1068722386


   @DickJC123 Good catch! [This line](https://github.com/apache/incubator-mxnet/blob/ded04008fd3cd95793e0eaaa72f5904deb77f838/.github/workflows/os_x_staticbuild.yml#L60) should be replaced with `MXNET_ENABLE_CYTHON: 0` to disable cython. 


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [incubator-mxnet] DickJC123 closed issue #20963: array_api_tests unittest failure on macosx- may be mxnet.numpy.eye() misbehavior or Cython enablement issue

Posted by GitBox <gi...@apache.org>.
DickJC123 closed issue #20963:
URL: https://github.com/apache/incubator-mxnet/issues/20963


   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [incubator-mxnet] DickJC123 closed issue #20963: array_api_tests unittest failure on macosx- may be mxnet.numpy.eye() misbehavior or Cython enablement issue

Posted by GitBox <gi...@apache.org>.
DickJC123 closed issue #20963:
URL: https://github.com/apache/incubator-mxnet/issues/20963


   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org