Hanjun-Dai / graph_adversarial_attack

Adversarial Attack on Graph Structured Data (https://arxiv.org/abs/1806.02371)
MIT License
127 stars 33 forks source link

Where is "_ext"? #5

Open mujm opened 3 years ago

mujm commented 3 years ago

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!

Hanjun-Dai commented 3 years ago

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

vietvo89 commented 3 years ago

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.
Hanjun-Dai commented 3 years ago

Sorry for the lack of maintenance.