When I run "cd vision python setup.py install", I have a problem, " command 'gcc' failed with exit status 1"
cuda = 10.0
pytorch-nightly = 1.0.0
/home/sls/ML/vision/torchvision/csrc/vision.cpp: At global scope:
/home/sls/ML/vision/torchvision/csrc/vision.cpp:43:12: error: ‘RegisterOperators’ is not a member of ‘torch’
torch::RegisterOperators()
^~~~~
/home/sls/ML/vision/torchvision/csrc/vision.cpp:43:12: note: suggested alternative:
In file included from /home/sls/anaconda3/envs/maskrcnn_benchmark/lib/python3.6/site-packages/torch/include/torch/script.h:5:0,
from /home/sls/ML/vision/torchvision/csrc/vision.cpp:2:
/home/sls/anaconda3/envs/maskrcnn_benchmark/lib/python3.6/site-packages/torch/include/torch/csrc/jit/custom_operator.h:201:18:note: ‘torch::jit::RegisterOperators’
struct TORCH_API RegisterOperators {
^~~~~
/home/sls/ML/vision/torchvision/csrc/vision.cpp:42:13: warning: ‘registry’ defined but not used [-Wunused-variable]
static auto registry =
^~~~
error: command 'gcc' failed with exit status 1
When I run "cd vision python setup.py install", I have a problem, " command 'gcc' failed with exit status 1" cuda = 10.0 pytorch-nightly = 1.0.0
/home/sls/ML/vision/torchvision/csrc/vision.cpp: At global scope: /home/sls/ML/vision/torchvision/csrc/vision.cpp:43:12: error: ‘RegisterOperators’ is not a member of ‘torch’ torch::RegisterOperators() ^
~~~~ /home/sls/ML/vision/torchvision/csrc/vision.cpp:43:12: note: suggested alternative: In file included from /home/sls/anaconda3/envs/maskrcnn_benchmark/lib/python3.6/site-packages/torch/include/torch/script.h:5:0, from /home/sls/ML/vision/torchvision/csrc/vision.cpp:2: /home/sls/anaconda3/envs/maskrcnn_benchmark/lib/python3.6/site-packages/torch/include/torch/csrc/jit/custom_operator.h:201:18:note: ‘torch::jit::RegisterOperators’ struct TORCH_API RegisterOperators { ^~~~~ /home/sls/ML/vision/torchvision/csrc/vision.cpp:42:13: warning: ‘registry’ defined but not used [-Wunused-variable] static auto registry = ^~~~ error: command 'gcc' failed with exit status 1