Skip to content

tanh while calculating attention scores #7

Description

@gordicaleksa

Hey! I was interested into why are you using tanh here:

attn_src = torch.matmul(F.tanh(h_prime), self.a_src) # bs x n_head x n x 1

in BatchMultiHeadGraphAttention, get_layers.py. Did it stabilize the training? Is it some form of feature normalization?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions