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

Fix Data.to_heterogeneous() with empty edge_index #6304

Merged
merged 4 commits into from
Dec 27, 2022

Conversation

rusty1s
Copy link
Member

@rusty1s rusty1s commented Dec 27, 2022

Also fixes #6299.

@codecov
Copy link

codecov bot commented Dec 27, 2022

Codecov Report

Merging #6304 (78f5592) into master (56cf20f) will increase coverage by 0.00%.
The diff coverage is 77.77%.

@@           Coverage Diff           @@
##           master    #6304   +/-   ##
=======================================
  Coverage   84.56%   84.56%           
=======================================
  Files         380      380           
  Lines       21161    21162    +1     
=======================================
+ Hits        17894    17896    +2     
+ Misses       3267     3266    -1     
Impacted Files Coverage Δ
torch_geometric/data/hetero_data.py 94.58% <50.00%> (-0.21%) ⬇️
torch_geometric/data/data.py 93.01% <80.00%> (+0.41%) ⬆️
...geometric/explain/algorithm/attention_explainer.py 85.96% <100.00%> (+0.25%) ⬆️
torch_geometric/explain/algorithm/gnn_explainer.py 96.64% <100.00%> (ø)

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

@rusty1s rusty1s merged commit e7e5d23 into master Dec 27, 2022
@rusty1s rusty1s deleted the to_hetero_empty_edge_index branch December 27, 2022 12:19
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.

Unexpected assignment of ptr when using HeteroDataBatch.to_homogeneous()
1 participant