ExpectationMax / ExpectationMax/torch_persistent_homology

Undefined Symbol _ZN3c106detail19maybe_wrap_dim_slowEllb

Open
#1 17 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Hi!

I wanted to use your library while building an adaptation of [TOGL](https://github.com/BorgwardtLab/TOGL). I installed it with pip and everything checked out, but now that I try to import it:

```
from torch_persistent_homology.persistent_homology_cpu import compute_persistence_homology_batched_mt
```

I get the following error:

```
from torch_persistent_homology.persistent_homology_cpu import compute_persistence_homology_batched_mt
ImportError: /home/user/miniconda/envs/pyg/lib/python3.7/site-packages/torch_persistent_homology/persistent_homology_cpu.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN3c106detail19maybe_wrap_dim_slowEllb
```

I am not familiar enough with C++ to fix this issue, do you know where to start?

If you need more context, I run the code in a Docker container Ubuntu 20.04, Pytorch LTS 1.8.2 CPU version. I am trying to carve out a standalone implementation of the [TopologyLayer](https://github.com/fratajcz/TOGL/blob/main/topognn/topolayer.py).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the import of persistent_homology_cpu.cpython-37m-x86_64-linux-gnu.so with the reported Ubuntu 20.04, Python 3.7, and PyTorch LTS 1.8.2 CPU environment. Trace the undefined symbol against the installed extension and PyTorch build; done means compute_persistence_homology_batched_mt imports successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
backend, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.