Skip to content
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

Pooling: Update base classes #7307

Merged
merged 6 commits into from
May 8, 2023
Merged

Pooling: Update base classes #7307

merged 6 commits into from
May 8, 2023

Conversation

wsad1
Copy link
Member

@wsad1 wsad1 commented May 6, 2023

Towards #6455.
This PR makes the following changes

  1. Removes the Pooling base class. The current implementation isn't flexible enough to support all pooling operators. Instead pooling operators will implement their own forward method, using Select , Connect and Aggregate operators.
  2. Updated the Select operator. It now returns SelectOutput which contains node_index, cluster_index, num_clusters and weight. Where weight is the weight given to a node assignment to a cluster.

@wsad1 wsad1 requested a review from EdisonLeeeee as a code owner May 6, 2023 05:10
@wsad1 wsad1 requested a review from rusty1s May 6, 2023 05:10
@github-actions github-actions bot added the nn label May 6, 2023
@codecov
Copy link

codecov bot commented May 6, 2023

Codecov Report

Merging #7307 (d59f37e) into master (8826a54) will decrease coverage by 0.67%.
The diff coverage is 0.00%.

❗ Current head d59f37e differs from pull request most recent head ac8df0b. Consider uploading reports for the commit ac8df0b to get more accurate results

@@            Coverage Diff             @@
##           master    #7307      +/-   ##
==========================================
- Coverage   92.07%   91.40%   -0.67%     
==========================================
  Files         438      437       -1     
  Lines       24303    24306       +3     
==========================================
- Hits        22378    22218     -160     
- Misses       1925     2088     +163     
Impacted Files Coverage Δ
torch_geometric/nn/pool/connect/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
torch_geometric/nn/pool/connect/base.py 0.00% <0.00%> (-100.00%) ⬇️
torch_geometric/nn/pool/select/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
torch_geometric/nn/pool/select/base.py 0.00% <0.00%> (-100.00%) ⬇️

... and 20 files with indirect coverage changes

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

@rusty1s rusty1s enabled auto-merge (squash) May 8, 2023 08:02
@rusty1s rusty1s merged commit c566f5c into master May 8, 2023
@rusty1s rusty1s deleted the pool_update branch May 8, 2023 08:07
rusty1s added a commit that referenced this pull request May 8, 2023
Towards #6455.
Do not review before #7307 is merged.

---------

Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
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