-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed the interface of coalesce
to only return single edge_index
information in case the edge_attr
argument is not specified
#6879
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6879 +/- ##
=======================================
Coverage 91.53% 91.53%
=======================================
Files 427 427
Lines 23173 23166 -7
=======================================
- Hits 21211 21205 -6
+ Misses 1962 1961 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@rusty1s thank you for the update. I've been struggling with this discrepancy between different functions, such as However, this is indeed a breaking change in PyG. I'm concerned that there may be compatibility issues for users who upgrade from older versions of PyG. Most importantly, the returned # for PyG<=2.2
edge_index, _ = coalesce(...) # correct
# for PyG >=2.3
edge_index, _ = coalesce(...) # wrong but work properly, equivalent to row, col = edge_index The worst-case scenario is that code written with an older version will still work in the latest version, but return incorrect results. Should we take steps to avoid this situation? |
Yes, this is a breaking change and will be highlighted in the release notes. I am not totally convinced it will impact a lot of users, as |
Thank you for your clarification. You are right. But I think we can add a warning in the doc-string, WDYT? |
Yes, sg. Will take care of it. |
Done in #6893. |
Thank you! |
No description provided.