-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Labels
bugSomething isn't workingSomething isn't working
Description
It seems like pytorch_sparse issue:
Traceback (most recent call last):
File "preprocessing.py", line 142, in
main()
File "preprocessing.py", line 100, in main
adj = get_adj(row, col, N, asymm_norm=args.undirected_asymm_norm, set_diag=args.undirected_set_diag, remove_diag=args.undirected_remove_diag)
File "preprocessing.py", line 19, in get_adj
adj = adj.set_diag()
File "/home/zhu044/.local/lib/python3.6/site-packages/torch_sparse/diag.py", line 96, in
self, values, k)
File "/home/zhu044/.local/lib/python3.6/site-packages/torch_sparse/diag.py", line 47, in set_diag
new_row[mask] = row
RuntimeError: shape mismatch: value tensor of shape [50238473] cannot be broadcast to indexing result of shape [50056641]
junhyk and hieuvt29
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Milestone
Relationships
Development
Select code repository
Activity
rusty1s commentedon Dec 14, 2020
Can you give a little more information of the adj that produces this error? Do you have a simple example to reproduce?
allenhaozhu commentedon Dec 14, 2020
I also tried SIGN code on papers100, the same problem happend
Align `*.csv` and snowflake schema for Financial dataset (rusty1s#98)
Gmrylbx commentedon Aug 7, 2023
Has this bug been fixed? I also encountered a similar problem
rusty1s commentedon Aug 8, 2023
It works fine for me on my end. What's the problem you encounter?
hieuvt29 commentedon Sep 29, 2024
I encountered the same issue and after a quick check, I found that it happens because this function (https://github.com/rusty1s/pytorch_sparse/blob/master/torch_sparse/diag.py#L32) assumes that the columns are sorted but it is not true for my case. Best!