Skip to content

Commit bc2b63c

Browse files
authored
Merge branch 'master' into feature/semi-discrete
2 parents bb15a06 + fbdfe2e commit bc2b63c

6 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/build_tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ jobs:
8383
python -m pip install --upgrade pip setuptools
8484
pip install -r requirements_all.txt
8585
pip install pytest pytest-cov
86+
- name: test POT import
87+
run: |
88+
python -c "import ot; print(ot.__version__)"
8689
- name: Run tests
8790
run: |
8891
python -m pytest --durations=20 -v test/ ot/ --doctest-modules --color=yes --cov=./ --cov-report=xml

RELEASES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This new release adds support for sparse cost matrices and a new lazy EMD solver
3030
- Fix test of the version of jax in `ot.backend` (PR #794)
3131
- Reverting the openmp fix on macOS (PR #789) for macOS (PR #797)
3232
- Align documentation build dependencies and doc extras (PR #801)
33-
33+
- Debug Debug linux test core dump (PR #815)
3434

3535
## 0.9.6.post1
3636

ot/gnn/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
# All submodules and packages
1818

1919
from ._utils import FGW_distance_to_templates, wasserstein_distance_to_templates
20-
2120
from ._layers import TFGWPooling, TWPooling
2221

22+
2323
__all__ = [
2424
"FGW_distance_to_templates",
2525
"wasserstein_distance_to_templates",

ot/gnn/_utils.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@
1212
from ..utils import dist
1313
from ..gromov import fused_gromov_wasserstein2
1414
from ..lp import emd2
15-
from torch_geometric.utils import subgraph
15+
import warnings
16+
17+
try:
18+
from torch_geometric.utils import subgraph
19+
except ImportError:
20+
warnings.warn(
21+
"torch_geometric is not installed. The ot.gnn module requires torch_geometric to be installed."
22+
)
23+
pass
1624

1725

1826
def TFGW_template_initialization(

requirements_all.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ autograd
55
pymanopt @ git+https://github.com/pymanopt/pymanopt.git@master
66
cvxopt
77
scikit-learn
8-
torch
8+
torch<=2.11
99
jax
1010
jaxlib
1111
tensorflow

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"networkx",
117117
"memory_profiler",
118118
],
119+
"tests": ["pytest", "pytest-cov"],
119120
"all": [
120121
"jax",
121122
"jaxlib",

0 commit comments

Comments
 (0)