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.
1 parent 0a60df3 commit 18bd8b6Copy full SHA for 18bd8b6
torch_sparse/reduce.py
@@ -35,7 +35,7 @@ def reduction(src: SparseTensor, dim: Optional[int] = None,
35
36
if dim == 0 and value is not None:
37
col = src.storage.col()
38
- return scatter(value, col, dim=0, dim_size=src.size(0))
+ return scatter(value, col, 0, None, src.size(1), reduce)
39
elif dim == 0 and value is None:
40
if reduce == 'sum' or reduce == 'add':
41
return src.storage.colcount().to(src.dtype())
0 commit comments