Skip to content

Commit

Permalink
[MRG] Debug sinkhorn divergence bug and add proper test (PythonOT#394)
Browse files Browse the repository at this point in the history
* skip tets if not torch installed

* update release.md
  • Loading branch information
rflamary authored Aug 17, 2022
1 parent f2aaf40 commit a24ec25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#### Closed issues

- Fixed an issue where sinkhorn divergence did not have a gradients (Issue #393, PR #394)
- Fixed an issue where we could not ask TorchBackend to place a random tensor on GPU
(Issue #371, PR #373)
- Fixed an issue where Sinkhorn solver assumed a symmetric cost matrix (Issue #374, PR #375)
Expand Down
1 change: 1 addition & 0 deletions test/test_bregman.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ def test_empirical_sinkhorn_divergence(nx):
ot.bregman.empirical_sinkhorn_divergence(X_sb, X_tb, 1, a=ab, b=bb, log=True)


@pytest.mark.skipif(not torch, reason="No torch available")
def test_empirical_sinkhorn_divergence_gradient():
# Test sinkhorn divergence
n = 10
Expand Down

0 comments on commit a24ec25

Please sign in to comment.