pytorch / tvm

TVM integration into PyTorch
449 stars 64 forks source link

Error while installing torch_tvm: Pybind11 #111

Closed IHIaadj closed 4 years ago

IHIaadj commented 4 years ago

Hello,

I'm trying to install torch_tvm but I got stuck with this error :

error: ‘PURE’ is not a member of ‘torch::jit::AliasAnalysisKind {aka c10::AliasAnalysisKind}’ options.setAliasAnalysis(AliasAnalysisKind::PURE);

Thanks

IHIaadj commented 4 years ago

Solved by using "PURE_FUNCTION" instead of "PURE" in both operator.cpp and register.cpp

I believe that the PURE kind is switched to PURE_FUNCTION in the last pytorch version.