We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2208c44 commit 5a1b90bCopy full SHA for 5a1b90b
1 file changed
test/test_bspot.py
@@ -7,6 +7,7 @@
7
import ot
8
import ot.bsp
9
import numpy as np
10
+import importlib.metadata
11
12
13
def test_bsp_ot_exact_identity():
@@ -141,4 +142,6 @@ def test_bsp_ot_torch_backend():
141
142
test_bsp_ot_identity_null_cost()
143
test_bsp_ot_plan_merge_decrease()
144
test_bsp_ot_relative_error()
-test_bsp_ot_torch_backend()
145
+
146
+if importlib.util.find_spec("torch") is not None:
147
+ test_bsp_ot_torch_backend()
0 commit comments