Hanjun-Dai / graph_adversarial_attack

Adversarial Attack on Graph Structured Data (https://arxiv.org/abs/1806.02371)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Where is "_ext"?

mujm opened this issue · comments

commented

Hello! I meet a problem when running the codes:

In custom_func.py, there is a code : "from _ext import my_lib", however, I can't find this pakage named "_ext", could you tell me how can I get it?

During make the codes, I got a mistake, too:

~/RS/graph_adversarial_attack/code/common$ make /bin/nvcc --default-stream per-thread -I/include -I/mkl/include -I/tbb/include -Iinclude -std=c++11 --use_fast_math --compiler-options '-fPIC' -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50 -M src/custom_kernel.cu -o _ext/custom_kernel.d -odir _ext make: /bin/nvcc: Command not found make: *** [Makefile:42: _ext/custom_kernel.o] Error 127

I guess it is because there is no pakage named "_ext", so again I wonder how to get this pakage.

I hope that you could reply, thanks!

This was built for torch 0.3.1, the new torch uses pybind11, a different c++ binding mechanism. You may want to rollback torch version (and corresponding dependencies).

Hi @Hanjun-Dai

It seems that I cannot install an old version by following your instruction. I got an error as below when doing pip install. Any way to reuse your code for new version of torch?

Thanks

ERROR: torch-0.3.1-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform.

Sorry for the lack of maintenance.

  • You can try to see if you can find a suitable one here https://pytorch.org/get-started/previous-versions/
  • otherwise you may want to build the torch 0.3.1 from source
  • or you can try if you can use docker
  • or VM
  • or if it is just python issue, see if you can use conda env to create an old one