We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
node_weight
METIS
1 parent 14781cb commit 3246352Copy full SHA for 3246352
.github/workflows/testing.yml
@@ -48,6 +48,7 @@ jobs:
48
49
- name: Install main package
50
run: |
51
+ pip install scipy
52
python setup.py develop
53
env:
54
WITH_METIS: 1
torch_sparse/metis.py
@@ -52,7 +52,7 @@ def partition(
value = None
if balance_edge:
55
- node_weight = col.new_zeros(col.size(0))
+ node_weight = col.new_zeros(rowptr.numel() - 1)
56
node_weight.scatter_add_(0, col, torch.ones_like(col))
57
58
if node_weight is not None:
0 commit comments