AssertionError assert row.max().item() < sparse_sizes[0] after updating
See original GitHub issueHi,
I was using the function torch_scatter.coalesce before with no problems. I updated today to the lasted version of pytorch geometric available via conda and now I get this error message:
assert row.max().item() < sparse_sizes[0] AssertionError
I have checked the torch_sparse.coalesce history and it seems this part of the code has been modified recently https://github.com/rusty1s/pytorch_sparse/blob/8c25ddefdc9f6e797aafff5782d1840025f80fa2/torch_sparse/storage.py#L21.
Is there a bug in the latest version installed via conda ? Or it must be something I am doing wrong?
Thanks
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
AssertionError in matmul (assert int(col.max()) < N) #191
Hi, I just faced AssertionError while using matmul. Here is the error message: File "/workspace/networks.py", line 37, in spspmm C ...
Read more >Pandas - Assertion Error aggregating with max - Stack Overflow
I think problem should be some column is not numeric, solution is specified column after groupby :
Read more >Python | Assertion Error - GeeksforGeeks
Assertion Error Assertion is a programming concept used while writing a code where the user declares a condition to be true using assert...
Read more >Python's assert: Debug and Test Your Code Like a Pro
In this tutorial, you'll learn how to use Python's assert statement to document, debug, and test code in development.
Read more >Assertion error when you run internal query in batch mode for ...
Assume that you have full-text index on a computed large object (LOB) column for a table in SQL Server 2019. When batch mode...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I dont have problems with pool_edge, but I have a similar function to it. And in my case I had problems due to the indexing I was using for the nodes did not meet the assert condition. Altough I think that for a standard use it should not cause issues as you pointed. So no worries. Thank you very much for the help.
That is correct (although the output will always be correct anyway since
cluster.size(0) > cluster.max()
. Do you wanna fix it anyway?