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
7 changes: 6 additions & 1 deletion .github/workflows/build_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@ jobs:
steps:
- uses: actions/checkout@v4
# Standard drop-in approach that should work for most people.

- name: Free Disk Space (Ubuntu)
uses: insightsengineering/disk-space-reclaimer@v1
with:
android: true
dotnet: true
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: 'pip'

- name: Get Python running
run: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ jobs:
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- name: Free Disk Space (Ubuntu)
uses: insightsengineering/disk-space-reclaimer@v1
with:
android: true
dotnet: true
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install POT
run: |
pip install -e .
Expand All @@ -93,6 +99,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
Expand Down Expand Up @@ -121,6 +128,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install POT
run: |
pip install -e .
Expand Down Expand Up @@ -148,6 +156,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: RC.exe
run: |
function Invoke-VSDevEnvironment {
Expand Down
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This new release adds support for sparse cost matrices in the exact EMD solver.
- Add support for sparse cost matrices in EMD solver (PR #778, Issue #397)
- Fix deprecated JAX function in `ot.backend.JaxBackend` (PR #771, Issue #770)
- Add test for build from source (PR #772, Issue #764)
- Fix device for batch Ot solver in `ot.batch` (PR #784, Issue #783)

## 0.9.6.post1

Expand Down
4 changes: 2 additions & 2 deletions ot/batch/_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ def solve_batch(
B, n, m = M.shape

if a is None:
a = nx.ones((B, n)) / n
a = nx.ones((B, n), type_as=M) / n
if b is None:
b = nx.ones((B, m)) / m
b = nx.ones((B, m), type_as=M) / m

if solver == "log_sinkhorn":
K = -M / reg
Expand Down
Loading