glow icon indicating copy to clipboard operation
glow copied to clipboard

Problems about installing torch_glow

Open ybai62868 opened this issue 6 years ago • 1 comments

I have successfully compiled the Glow C++ API. And I want to test the glow in the python language. That is, I want to use import torch_glow. When I go to torch_glow folder and then python setup.py install It has the following errors.

[ 62%] Linking CXX executable ../GraphGradTest [ 62%] Linking CXX executable ../ProvisionerTest [ 63%] Linking CXX executable ../GlowOnnxifiManagerTest /Users/baiyang/Downloads/glow/torch_glow/src/PyTorchModelLoader.cpp:26:10: fatal error: 'ATen/native/c10_utils.h' file not found #include <ATen/native/c10_utils.h> ^~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make[2]: *** [torch_glow/src/CMakeFiles/PyTorchModelLoader.dir/PyTorchModelLoader.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 64%] Building CXX object tools/loader/CMakeFiles/text-translator.dir/TextTranslator.cpp.o [ 64%] Linking CXX executable ../HostManagerTest /Users/baiyang/Downloads/glow/torch_glow/src/PyTorchCommon.cpp:34:15: error: no member named 'getExecutorMode' in namespace 'torch::jit' torch::jit::getExecutorMode() = false;

[ 65%] Building CXX object tools/loader/CMakeFiles/image-classifier.dir/ImageClassifier.cpp.o
[ 65%] Building CXX object tools/loader/CMakeFiles/model-runner.dir/ModelRunner.cpp.o



Can you help me to solve this problem or can you tell me the correct way to install torch_glow?

ybai62868 avatar Jan 08 '20 06:01 ybai62868

您好 大佬,我也遇到了同样的问题,请问您解决了吗?

PL2584718785 avatar Jul 08 '22 03:07 PL2584718785