We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I notice that in the forward methods of models.py, the node and edge updates are written as:
forward
models.py
# Inside forward methods of GINe, GATe , and PNA # Pay attention to the `edge_attr` line for i in range(self.num_gnn_layers): x = (x + F.relu(self.batch_norms[i](self.convs[i](x, edge_index, edge_attr)))) / 2 if self.edge_updates: edge_attr = edge_attr + self.emlps[i](torch.cat([x[src], x[dst], edge_attr], dim=-1)) / 2
As I understand, without /2 then the features update with a residual design. Using /2 to make an average is also ok since we don't have deep GNN here.
/2
However, it is confusing that x is updated with average while edge_attr is not.
x
edge_attr
Also, the forward method of RGCN updates both x and edge_attr with /2:
# Inside forward methods of RGCN # Pay attention to the `edge_attr` line for i in range(self.num_gnn_layers): x = (x + F.relu(self.batch_norms[i](self.convs[i](x, edge_index, edge_attr)))) / 2 if self.edge_updates: edge_attr = (edge_attr + self.emlps[i](torch.cat([x[src], x[dst], edge_attr], dim=-1)))/ 2
Is this an intentional design?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I notice that in the
forward
methods ofmodels.py
, the node and edge updates are written as:As I understand, without
/2
then the features update with a residual design. Using/2
to make an average is also ok since we don't have deep GNN here.However, it is confusing that
x
is updated with average whileedge_attr
is not.Also, the forward method of RGCN updates both
x
andedge_attr
with/2
:Is this an intentional design?
The text was updated successfully, but these errors were encountered: