Skip to content

Technical question #1

Closed
Closed

Description

@DevinKreuzer

Hi, thanks for the great paper :)

I was just curious as to what the 'z' variable is in line 59 of the graph_transformer_layer.py code? I cannot seem to find the equivalent in the paper. It seems you are normalizing the output heads by the sum of the attention weights?

Would appreciate a little point :)

Thanks,
Devin

Activity

  1. vijaydwivedi75 commented on Jan 14, 2021

    @vijaydwivedi75
    Member

    Hi @DevinKreuzer, glad and thanks for your question.
    We follow the DGL implementation with builtin funcs as described in detail here.

    The 'z' is part of the softmax, implemented in this fashion.

    Hope the article referenced makes clear and leaves no inconsistency as compared to the equations in the paper.

    Cheers,
    Vijay

  2. vijaydwivedi75 commented on Jan 21, 2021

    @vijaydwivedi75
    Member

    Closing the issue!
    Feel free to open in case of further questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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