Skip to content

Commit

Permalink
fix log sinkhorn_ti
Browse files Browse the repository at this point in the history
  • Loading branch information
clbonet committed Sep 13, 2024
1 parent 74a4ba4 commit 2acbdbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ot/unbalanced/_sinkhorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ def sinkhorn_unbalanced_translation_invariant(a, b, M, reg, reg_m, reg_type="kl"
if n_hists: # return only loss
res = nx.einsum('ik,ij,jk,ij->k', u, K, v, M)
if log:
return res, log
return res, dict_log
else:
return res

Check warning on line 1123 in ot/unbalanced/_sinkhorn.py

View check run for this annotation

Codecov / codecov/patch

ot/unbalanced/_sinkhorn.py#L1123

Added line #L1123 was not covered by tests

Expand Down

0 comments on commit 2acbdbb

Please sign in to comment.