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

[Feature] Support multidimensional features for GAT #2912

Merged
merged 4 commits into from
May 14, 2021

Conversation

BarclayII
Copy link
Collaborator

This PR enables GAT for inputs with axes greater than 2. The computation will parallelize on the second to second-to-last axes.

Useful for batch computation on graphs with the same structure. From now on, people can just do:

x = torch.randn(num_nodes, batch_size, feat_dim)
m = dglnn.GATConv(feat_dim, out_dim, num_heads)
y = m(g, x)   # gives a (num_nodes, batch_size, num_heads, out_dim) tensor

Note that modules like GraphConv and SAGEConv already supports such semantics.

@dgl-bot
Copy link
Collaborator

dgl-bot commented May 14, 2021

To trigger regression tests:

  • @dgl-bot run [instance-type] [which tests] [compare-with-branch];
    For example: @dgl-bot run g4dn.4xlarge all dmlc/master or @dgl-bot run c5.9xlarge kernel,api dmlc/master

@BarclayII BarclayII merged commit 9983107 into dmlc:master May 14, 2021
@BarclayII BarclayII deleted the gat-multidim branch May 14, 2021 18:47
@mklpr mklpr mentioned this pull request Mar 5, 2022
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.

3 participants