-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom C++ extension : torch/torch.h not found #22
Comments
Hi, please provide more information about your environment. What version of PyTorch are you using? |
I am using torch==0.4.1. I located the torch.h file and added the path during compilation.
CompressionLayer.cc is this :
|
What commands did you run to arrive at this compiler error? Please provide as much context as possible for me to help. |
@goldsborough I have added all the info in the above comment. Please let me know if you have any questions. |
You are not supposed to compile this code manually like this. Have you seen the setup.py and torch.utils.cpp_extensions.load instructions in the tutorial? I think it is explained quite well how to build an extension using the means we provide. |
Can u pls tell me how build to this ? |
It is explained in the tutorial here: https://pytorch.org/tutorials/advanced/cpp_extension.html#building-with-setuptools |
My bad. I skipped that. |
I am following this tutorial to create a C++ extension for Pytorch. My C++ code is giving following error :
How to get torch.h header file ? Is there some
pytorch-dev
version ?The text was updated successfully, but these errors were encountered: