justanhduc / graphx-conv

Official implementation of GraphX-Convolution
https://justanhduc.github.io/2019/09/29/GraphX-Convolution.html
MIT License
62 stars 17 forks source link

How can i install Neuralnet-pytorch #15

Open lixyxd opened 3 years ago

lixyxd commented 3 years ago

Thank you for your nice code! I have a problem when I install Neuralnet-pytorch.

How can i checkout the revision 6bda19fdc57f176cb82f58d287602f4ccf4cfc23?

`In file included from /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/include/chamfer_cuda.h:2:0, from /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/csrc/chamfer_cuda.cpp:1: /home/wm/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:7:2: warning: #warning "Including torch/torch.h for C++ extensions is deprecated. Please include torch/extension.h" [-Wcpp]

warning \

^~~ In file included from /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/csrc/chamfer_cuda.cpp:3:0: /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/csrc/chamfer_cuda.cpp: In function ‘std::vector chamfer_forward(at::Tensor, at::Tensor)’: /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/include/utils.h:6:3: error: ‘TORCH_CHECK’ was not declared in this scope TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor") ^ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/include/utils.h:10:3: note: in expansion of macro ‘CHECK_CUDA’ CHECK_CUDA(x); \ ^~~~~~ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/csrc/chamfer_cuda.cpp:16:3: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(xyz1); ^~~ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/include/utils.h:6:3: note: suggested alternative: ‘AT_CHECK’ TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor") ^ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/include/utils.h:10:3: note: in expansion of macro ‘CHECK_CUDA’ CHECK_CUDA(x); \ ^~~~~~ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/csrc/chamfer_cuda.cpp:16:3: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(xyz1); ^~~ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/csrc/chamfer_cuda.cpp: In function ‘std::vector chamfer_backward(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor)’: /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/include/utils.h:6:3: error: ‘TORCH_CHECK’ was not declared in this scope TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor") ^ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/include/utils.h:10:3: note: in expansion of macro ‘CHECK_CUDA’ CHECK_CUDA(x); \ ^~~~~~ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/csrc/chamfer_cuda.cpp:28:3: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(xyz1); ^~~ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/include/utils.h:6:3: note: suggested alternative: ‘AT_CHECK’ TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor") ^ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/include/utils.h:10:3: note: in expansion of macro ‘CHECK_CUDA’ CHECK_CUDA(x); \ ^~~~~~ /home/wm/下载/neuralnet-pytorch-6bda19fdc57f176cb82f58d287602f4ccf4cfc23/neuralnet_pytorch/extensions/csrc/chamfer_cuda.cpp:28:3: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(xyz1); ^~~ error: command 'gcc' failed with exit status 1 `