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

GPSConv Graph Transformer Layer #6326

Merged
merged 8 commits into from
Jan 2, 2023
Merged

GPSConv Graph Transformer Layer #6326

merged 8 commits into from
Jan 2, 2023

Conversation

rusty1s
Copy link
Member

@rusty1s rusty1s commented Jan 2, 2023

No description provided.

@codecov
Copy link

codecov bot commented Jan 2, 2023

Codecov Report

Merging #6326 (975dfe1) into master (abc3ad2) will decrease coverage by 1.85%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #6326      +/-   ##
==========================================
- Coverage   86.26%   84.41%   -1.86%     
==========================================
  Files         385      386       +1     
  Lines       21445    21478      +33     
==========================================
- Hits        18499    18130     -369     
- Misses       2946     3348     +402     
Impacted Files Coverage Δ
torch_geometric/nn/conv/__init__.py 100.00% <100.00%> (ø)
torch_geometric/nn/conv/gps_conv.py 100.00% <100.00%> (ø)
torch_geometric/nn/models/dimenet_utils.py 0.00% <0.00%> (-75.52%) ⬇️
torch_geometric/nn/models/dimenet.py 14.90% <0.00%> (-52.76%) ⬇️
torch_geometric/visualization/graph.py 68.25% <0.00%> (-26.99%) ⬇️
torch_geometric/profile/profile.py 33.33% <0.00%> (-25.39%) ⬇️
torch_geometric/nn/conv/utils/typing.py 83.75% <0.00%> (-15.00%) ⬇️
torch_geometric/nn/pool/asap.py 92.10% <0.00%> (-7.90%) ⬇️
torch_geometric/nn/inits.py 67.85% <0.00%> (-7.15%) ⬇️
torch_geometric/resolver.py 82.75% <0.00%> (-6.90%) ⬇️
... and 32 more

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

@rusty1s rusty1s merged commit 78bba36 into master Jan 2, 2023
@rusty1s rusty1s deleted the graphgps branch January 2, 2023 12:31
@Jerome-Cong
Copy link

Hi, thanks for adding this layer! The paper of GraphGPS mentioned that the use of linear transformers (e.g. BigBird and Performer) dramatically improves the computation efficiency for big graphs (hundreds of nodes). It seems that GPSConv currently uses a vanilla transformer (i.e. the global attention). Will linear transformer options be one of the TODOs in the future?

@rusty1s
Copy link
Member Author

rusty1s commented Jan 13, 2023

Yes, we are happy to extend GraphGPS to support other transformers. Also appreciate a PR if you would like to contribute :)

@alexlyzhov
Copy link

h = self.norm3(h, batch=batch)

Seems like norm3 is never used

@rusty1s
Copy link
Member Author

rusty1s commented Mar 17, 2023

Can you clarify what you mean?

@alexlyzhov
Copy link

It changes h, but h is not saved.

@rusty1s
Copy link
Member Author

rusty1s commented Mar 20, 2023

You are absolutely, right, thanks! Fixed this :(

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.

None yet

3 participants