Skip to content

Commit 00e4a5a

Browse files
committed
update
1 parent ac1eae9 commit 00e4a5a

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/building.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [ubuntu-22.04, macos-14, windows-2022, ubuntu-22.04-arm]
13+
os: [windows-2022]
14+
# os: [ubuntu-22.04, macos-14, windows-2022, ubuntu-22.04-arm]
1415
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
1516
torch-version: [2.9.0, 2.10.0]
1617
cuda-version: ['cpu', 'cu126', 'cu128', 'cu130']

torch_cluster/nearest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,7 @@ def nearest(
120120
y = torch.cat([y, 2 * D * batch_y.view(-1, 1).to(y.dtype)], -1)
121121

122122
return torch.from_numpy(
123-
scipy.cluster.vq.vq(x.detach().cpu(),
124-
y.detach().cpu())[0]).to(torch.long)
123+
scipy.cluster.vq.vq(
124+
x.detach().cpu().float(),
125+
y.detach().cpu().float(),
126+
)[0]).to(torch.long)

0 commit comments

Comments
 (0)