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

[Type Hints] nn.GNNExplainer #5716

Merged
merged 11 commits into from
Oct 19, 2022

Conversation

sebastian-montero
Copy link
Contributor

@rusty1s Please note that I am using torch.jit.export() instead of torch.jit.script() for the tests. Can you please confirm if this is ok?

@codecov
Copy link

codecov bot commented Oct 15, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@099430c). Click here to learn what that means.
The diff coverage is 100.00%.

❗ Current head 4d6faff differs from pull request most recent head 1b92989. Consider uploading reports for the commit 1b92989 to get more accurate results

@@            Coverage Diff            @@
##             master    #5716   +/-   ##
=========================================
  Coverage          ?   83.97%           
=========================================
  Files             ?      349           
  Lines             ?    19407           
  Branches          ?        0           
=========================================
  Hits              ?    16297           
  Misses            ?     3110           
  Partials          ?        0           
Impacted Files Coverage Δ
torch_geometric/nn/models/gnn_explainer.py 100.00% <100.00%> (ø)

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

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.

torch.jit.export works here. Can we also add type hints to the function inside GNNExplainer?

@sebastian-montero
Copy link
Contributor Author

sebastian-montero commented Oct 18, 2022

Hi @rusty1s, I already did. I added type hints to all methods in the class GNNExplainer here torch_geometric/nn/models/gnn_explainer.py

Am I missing something?

@rusty1s
Copy link
Member

rusty1s commented Oct 18, 2022

Ah, sorry. Overlooked that single file, my bad.

@sebastian-montero
Copy link
Contributor Author

Ah, sorry. Overlooked that single file, my bad.

No problem! I'll resolve the Changelog conflicts and this should be ready to merge.

@rusty1s rusty1s enabled auto-merge (squash) October 19, 2022 08:16
@rusty1s rusty1s merged commit 396f183 into pyg-team:master Oct 19, 2022
JakubPietrakIntel pushed a commit to JakubPietrakIntel/pytorch_geometric that referenced this pull request Nov 25, 2022
@rusty1s Please note that I am using `torch.jit.export()` instead of
`torch.jit.script()` for the tests. Can you please confirm if this is
ok?

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