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/06/19 08:15:33 UTC

[GitHub] asitstands edited a comment on issue #10951: [MXNET-545] Fix broken cython build

asitstands edited a comment on issue #10951: [MXNET-545] Fix broken cython build
URL: https://github.com/apache/incubator-mxnet/pull/10951#issuecomment-398307755
 
 
   A way to check whether or not cython is actually used at runtime is seeing `mx.nd._internal.NDArrayBase`. It must be `mxnet._cy3.ndarray.NDArrayBase` if cython is used and `mxnet._ctypes.ndarray.NDArrayBase` otherwise.
   
   So, if it is desirable, we could run a test like this before the unit tests run.
   ```bash
   if [ "$(echo -e 'import mxnet as mx\nprint(mx.nd._internal.NDArrayBase)' | python)" != "<class 'mxnet._cy3.ndarray.NDArrayBase'>" ]; then
       echo "Error: cython is not used."
       return 1
   fi
   ```

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