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

Add check on add_self_loops in HeteroConv and to_hetero #4647

Merged
merged 6 commits into from
May 15, 2022

Conversation

Padarn
Copy link
Contributor

@Padarn Padarn commented May 15, 2022

Addresses #4646 to add a check on the convention add_self_loops argument.

@Padarn Padarn changed the title WIP: Add check on add_self_loops in HeteroConv and to_hetero Add check on add_self_loops in HeteroConv and to_hetero May 15, 2022
@Padarn
Copy link
Contributor Author

Padarn commented May 15, 2022

A number of tests fail now with the new check. I'm going to change these. Let me know if you think this should just be a warning so we don't break old code?

@codecov
Copy link

codecov bot commented May 15, 2022

Codecov Report

Merging #4647 (f058af1) into master (db40aa6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #4647   +/-   ##
=======================================
  Coverage   82.96%   82.97%           
=======================================
  Files         316      316           
  Lines       16774    16782    +8     
=======================================
+ Hits        13917    13925    +8     
  Misses       2857     2857           
Impacted Files Coverage Δ
torch_geometric/nn/conv/hetero_conv.py 88.88% <100.00%> (+0.65%) ⬆️
torch_geometric/nn/to_hetero_transformer.py 95.26% <100.00%> (+0.05%) ⬆️
torch_geometric/utils/hetero.py 30.55% <100.00%> (+6.31%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db40aa6...f058af1. Read the comment docs.

Copy link
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.

Thank you! I removed the check in to_hetero_with_bases. Adding self-loops is actually allowed there since we are operating on a typed homogeneous graph.

@rusty1s rusty1s merged commit 0ded02b into pyg-team:master May 15, 2022
@Padarn
Copy link
Contributor Author

Padarn commented May 15, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants