ERROR:
_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE
或者是:
cpython-37m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass
解决:
https://github.com/Tramac/awesome-semantic-segmentation-pytorch/issues/24
https://github.com/Tramac/awesome-semantic-segmentation-pytorch/issues/76
solved.
rm -r build, then recompile.
main reason is: I compiled with pytorch1.0.1, then recompile with pytorch1.1 without delete build
folder.
refer to: facebookresearch/maskrcnn-benchmark#421, which is using similiar setup.py.
------------------
在python setup.py install 操作的文件夹下,rm -r build,然后再重新安装就好了。
cd inplace_abn python setup.py install cd scripts pip install -r requirements.txt