Skip to content

Implemented sparse variant of top-k sparsification for the GDC transform#6245

Open
marekdedic wants to merge 4 commits intopyg-team:masterfrom
marekdedic:gdc-sparse-topk-sparsification
Open

Implemented sparse variant of top-k sparsification for the GDC transform#6245
marekdedic wants to merge 4 commits intopyg-team:masterfrom
marekdedic:gdc-sparse-topk-sparsification

Conversation

@marekdedic
Copy link
Copy Markdown
Contributor

@marekdedic marekdedic commented Dec 15, 2022

Hi,
the GDC transform was missing a sparse variant of the top-k sparsification method, so I share my implementation... Feedback welcome.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 15, 2022

Codecov Report

Merging #6245 (94bee0d) into master (60538ff) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #6245      +/-   ##
==========================================
+ Coverage   91.27%   91.29%   +0.01%     
==========================================
  Files         436      436              
  Lines       23894    23912      +18     
==========================================
+ Hits        21810    21830      +20     
+ Misses       2084     2082       -2     
Impacted Files Coverage Δ
torch_geometric/transforms/gdc.py 82.79% <100.00%> (+2.58%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Copy Markdown
Member

@rusty1s rusty1s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Can we add a small test for this as well?

@marekdedic
Copy link
Copy Markdown
Contributor Author

Thanks, I'll try to add one.

@marekdedic marekdedic requested a review from rusty1s January 5, 2023 13:25
@marekdedic marekdedic force-pushed the gdc-sparse-topk-sparsification branch from 94bee0d to 951dc31 Compare April 30, 2026 12:37
@marekdedic marekdedic force-pushed the gdc-sparse-topk-sparsification branch from 951dc31 to c3f0c89 Compare April 30, 2026 13:20
@marekdedic marekdedic force-pushed the gdc-sparse-topk-sparsification branch from c3f0c89 to 0704bbf Compare April 30, 2026 13:22
@marekdedic marekdedic force-pushed the gdc-sparse-topk-sparsification branch from 0704bbf to a307f06 Compare April 30, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants