inspiros / torchpairwise

Pairwise Metrics for PyTorch
MIT License
16 stars 0 forks source link

[BUG] I cannot use it after installation, I tried colab, wsl, rhel, they show same issue #1

Open hawkinglai opened 1 month ago

hawkinglai commented 1 month ago

RuntimeError Traceback (most recent call last) in <cell line: 1>() ----> 1 import torch, torchpairwise

1 frames /usr/local/lib/python3.10/dist-packages/torchpairwise/extension.py in _assert_has_ops() 90 def _assert_has_ops(): 91 if not _has_ops(): ---> 92 raise RuntimeError( 93 "Couldn\'t load custom C++ ops. Recompile C++ extension with:\n" 94 "\tpython setup.py build_ext --inplace"

RuntimeError: Couldn't load custom C++ ops. Recompile C++ extension with: python setup.py build_ext --inplace

inspiros commented 5 days ago

Hi @hawkinglai, sorry for being irresponsive. I have been through very intense months.

I recompiled the package locally with torch==2.5.1+cu124 and ran the test script on my new device (Windows 11 and Pop!OS) and it worked without any problem. I will try to replicate it and see what the issue could be. However, I suppose with high certainty that it's not a bug. Anyways, thanks for reporting.