Closed chengjun closed 5 years ago
There is a warning D9002 “-std=c++11”
it seems to be related with the c++ configuration using visual studio. However, even I delete related sentences, the problem still holds. Thus, I think it may not be this reason.
Using deprecated NumPy API
; Just for a further reference, cython online docs says this is because Cython is using a deprecated Numpy API, and for the time being, it's just a warning that we can ignore. https://stackoverflow.com/questions/25789055/cython-numpy-warning-about-npy-no-deprecated-api-when-using-memoryview
I'm sorry, I have very little experience with Windows. I also don't have access to a Windows machine that I could even try to debug this on. I'd say the easiest thing to do would be to run it inside of a VM/docker
@lematt1991 Could you please attach the files generated by python setup.py build_ext --inplace
? Or include them into the repo. Thank you.
It generates a compiled .so
c++ library that gets linked. This is a platform dependent binary, so shouldn't get checked into the repository. If it's built on another platform, it will also not work for Windows, unfortunately. I'd recommend building inside of a docker image running linux (such as this)
@lematt1991 Thank you for your constructive advice. Following your suggestion, I successfully run the code inside the docker image of Ubuntu.
Thank you for sharing this great code. However, I encountered one valueError when I am trying to reproduce the
train-mammals.sh
. The error information can be as follows:I am using pytorch 1.0 with cuda 10.0 on windows:
I found that the problem comes from earlier steps
python setup.py build_ext --inplace
. When I runpython setup.py build_ext --inplace
, it shows the following information:Your suggestion are welcome. Thanks.