Closed thuwzy closed 4 years ago
In deeprobust/graph/utils.py
line 226 and 230, in function to_scipy(tensor)
, change return sp.csr_matrix((values.cpu().numpy(), indices.cpu().numpy()))
into return sp.csr_matrix((values.cpu().numpy(), indices.cpu().numpy()), shape = tensor.shape)
may fix it.
Hi,
Thank you for your valuable advice!
I've modified the to_scipy()
as you suggested and fix some extra bugs, like missing __init__.py
in deeprobust/graph/rl
folder.
When I directly run
test_nipa.py
, I got an error like this: