inplace_abn icon indicating copy to clipboard operation
inplace_abn copied to clipboard

from inplace_abn import InPlaceABN, InPlaceABNSync error

Open ginobilinie opened this issue 5 years ago • 5 comments

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 avatar Nov 28 '19 05:11 ginobilinie

@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 ?

ducksoup avatar Dec 05 '19 10:12 ducksoup

Thanks. I'll try your method.

ginobilinie avatar Dec 05 '19 21:12 ginobilinie

I hava the same question. Can you tell me how to deal with it?

Kingtin avatar Apr 01 '22 04:04 Kingtin

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.

HieuPhan33 avatar Apr 04 '22 00:04 HieuPhan33