Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
- Fix doc for projection sparse simplex (PR #734, PR #746)
- Changed the default behavior of `ot.lp.solver_1d.wasserstein_circle` (Issue #738)
- Avoid raising unnecessary warnings in `ot.lp.solver_1d.binary_search_circle` (Issue #738)
- Avoid deprecation warning in `ot.lp.solver_1d.wasserstein_1d` (Issue #760, PR #761)

## 0.9.5

Expand Down
4 changes: 2 additions & 2 deletions ot/lp/solver_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def quantile_function(qs, cws, xs):
if nx.__name__ == "torch":
# this is to ensure the best performance for torch searchsorted
# and avoid a warning related to non-contiguous arrays
cws = cws.T.contiguous()
qs = qs.T.contiguous()
cws = cws.movedim(0, -1).contiguous()
qs = qs.movedim(0, -1).contiguous()
else:
cws = cws.T
qs = qs.T
Expand Down
Loading