NamelessLoop opened a new issue #19778: URL: https://github.com/apache/incubator-mxnet/issues/19778
I have already "cythonized" my code declaring in the code int, double, list ecc. But, as my code has data type from the Mxnet library like: (mxnet.io.NDArrayIter, mxnet.ndarray.ndarray.NDArray), I wanted to declare those to speed up the training phase of the code. Searching on the web I find out that, like for numpy.get_include() in the setup.py file, I have to declare the same path for mxnet in "include_dirs=...". The command for mxnet is mxnet.libinfo.find_include_path(), but it gives me this error: `RuntimeError: Cannot find the MXNet include path in either C:\Users\pietr\Anaconda3\envs\analysis\lib\site-packages\mxnet\include/ or C:\Users\pietr\Anaconda3\envs\analysis\lib\site-packages\mxnet\../../include/ ` Therefore, I do not know how to write properly the setup.py file, furthermore what type should I put in for example: ``` cdef ???? encoder_input = trn_batch.data[0].as_in_context(mx.cpu()) cdef ???? train_iter = mxnet.io.NDArrayIter(train_input, train_output, batch_size=train_bs, shuffle=True) ``` ---------------------------------------------------------------- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
