patrick-kidger / signatory

Differentiable computations of the signature and logsignature transforms, on both CPU and GPU. (ICLR 2021)
Apache License 2.0
262 stars 35 forks source link

ERROR: Undefined symbol building with torch 1.8.0 #36

Open jdavidls opened 3 years ago

jdavidls commented 3 years ago

The execution of python setup.py install finishes without problems, but when I type the import signatory I get the following error:

/home/~/.pyenv/versions/3.8.2/lib/python3.8/site-packages/signatory/_impl.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe28TypeMeta21_typeMetaDataInstanceIN3c107complexIfEEEEPKNS_6detail12TypeMetaDataEv

I've been researching and it seems that version 1.8.0 has stopped supporting coffe.

Thanks for your excellent work

patrick-kidger commented 3 years ago

It looks like the PyTorch version has been changed between compiling Signatory and running it. This can sometimes happen if you compile it in one virtual environment, and then run it in another, for example.

I have just tested compiling+importing Signatory against PyTorch 1.8.0 and it does work.