Adding trim_to_layer utility function#6661
Merged
Merged
Conversation
rusty1s
reviewed
Feb 24, 2023
rusty1s
left a comment
Member
There was a problem hiding this comment.
Thanks for this PR. I have a few questions:
- Can we split this PR into multiple such that we first integrate
sampled_infointo theNeighborLoaderbefore we think about integration inMessagePassing/benchmark scripts? - I am not entirely sure why we need the concept of a
HierarchicalSparseTensor. Can't we just letNeighborLoaderreturn a list of sliced edge indices/sparse tensors? - I would like to avoid adding any logic of this to
MessagePassingand its instances. IMO, any customization ofxandedge_indexshould happen outside of it. Would that be possible?
Contributor
Author
Thanks @rusty1s for the review. Let's proceed first with pyg-lib part. |
rusty1s
added a commit
to pyg-team/pyg-lib
that referenced
this pull request
Feb 28, 2023
It's enabling the hierarchical tensor usage and significant performance improvement PyG part: pyg-team/pytorch_geometric#6661 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: rusty1s <matthias.fey@tu-dortmund.de>
rusty1s
reviewed
Mar 1, 2023
to significantly improve performance
28bba95 to
cc036d8
Compare
trim_to_layer utility function
rusty1s
approved these changes
Mar 20, 2023
Codecov Report
@@ Coverage Diff @@
## master #6661 +/- ##
=======================================
Coverage 91.46% 91.46%
=======================================
Files 431 432 +1
Lines 23458 23498 +40
=======================================
+ Hits 21455 21492 +37
- Misses 2003 2006 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
17 tasks
marekdedic
pushed a commit
to marekdedic/pytorch_geometric
that referenced
this pull request
Apr 30, 2026
Adding hierarchical graph adjacency matrix feature to significantly improve performance Contributors: @rBenke @andreazanetti --------- Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding hierarchical graph adjacency matrix feature to significantly improve performance
Contributors: @rBenke @andreazanetti