inplace_abn
inplace_abn copied to clipboard
from inplace_abn import InPlaceABN, InPlaceABNSync error
When I do: from inplace_abn import InPlaceABN, InPlaceABNSync
there is an error:
/home/xx/.local/lib/python3.6/site-packages/inplace_abn-1.0.7-py3.6-linux-x86_64.egg/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs
Can anyone help me?
Environment:
cuda 10.0 pytorch 1.2 torchvision 0.4.0 gcc 7.4.0
@ginobilinie This appears to be an issue related to your python environment. Are you able to compile any other code that includes pythorch c++ extensions, e.g. following this tutorial: https://pytorch.org/tutorials/advanced/cpp_extension.html ?
Thanks. I'll try your method.
I hava the same question. Can you tell me how to deal with it?
Hi all, I have the same problem and fix it by downgrading the inplace-abn version to 1.0.12:
pip install inplace-abn=1.0.12
My environment is CUDA 11.1, pytorch 1.9.1, gcc 7.5.