Cery
Cery

Reputation: 221

Can not find <torch/extension.h>

I create a pytorch extention, followed by this link but it throws out the error that

fatal error: torch/extension.h: No such file or directory.

ubuntu 18.04
code::blocks 17.04
gcc 7.4.0
#include <torch/extension.h>

I expect the code to run. Is there any document to fix this problem?

Upvotes: 3

Views: 5740

Answers (1)

neelesh bisht
neelesh bisht

Reputation: 650

is the canonical header file that create Python bindings for C++/Cuda extensions. So Try upgrading the version of Pytorch if it's not in newest version.

Upvotes: 2

Related Questions