MCPcopy
hub / github.com/dmlc/dgl / _scatter_add

Function _scatter_add

tests/python/pytorch/sparse/test_sparse_matrix.py:206–210  ·  view source on GitHub ↗
(a, index, v=1)

Source from the content-addressed store, hash-verified

204
205
206def _scatter_add(a, index, v=1):
207 index = index.tolist()
208 for i in index:
209 a[i] += v
210 return a
211
212
213@pytest.mark.parametrize("dense_dim", [None, 4])

Callers 4

test_coo_to_csrFunction · 0.70
test_csc_to_csrFunction · 0.70
test_coo_to_cscFunction · 0.70
test_csr_to_cscFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected