summaryrefslogtreecommitdiff
path: root/test/test_weak.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_weak.py')
-rw-r--r--test/test_weak.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_weak.py b/test/test_weak.py
index c4c3278..945efb1 100644
--- a/test/test_weak.py
+++ b/test/test_weak.py
@@ -45,9 +45,7 @@ def test_weak_ot_bakends(nx):
G = ot.weak_optimal_transport(xs, xt, u, u)
- xs2 = nx.from_numpy(xs)
- xt2 = nx.from_numpy(xt)
- u2 = nx.from_numpy(u)
+ xs2, xt2, u2 = nx.from_numpy(xs, xt, u)
G2 = ot.weak_optimal_transport(xs2, xt2, u2, u2)