Skip to content

Possible discrepancy between _NodeConv.forward() implementation and paper equation #22

@Snitro

Description

@Snitro

Hi all,

Thanks for the great work!

I noticed a potential inconsistency between the implementation of the _NodeConv class and the equation described in the paper.

Current implementation:

    def forward(self, graph, nfeat, efeat):
        h = (1 + self.eps) * nfeat
        h = self.gconv(graph, h, efeat)
        h = self.mlp(h)
        h = F.leaky_relu(self.batchnorm(h))
        return h

However, according to the equation in the paper:

Image

It seems that the residual connection is added after the graph convolution, which might suggest that the code should be:

    def forward(self, graph, nfeat, efeat):
        h = self.gconv(graph, nfeat, efeat) + self.eps * nfeat
        h = self.mlp(h)
        h = F.leaky_relu(self.batchnorm(h))
        return h

Could you please confirm whether this is an intentional design choice or a possible deviation from the original formulation?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions