Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Why using relu to compute additaive attention #28

@yuboona

Description

@yuboona

1、Attention's formula

  • In Normal Additive version, the attention score as follow:
score = v * tanh(W * [hidden; encoder_outputs])
  • In your code
score = v * relu(W * [hidden; encoder_outputs])

2、question

Is there some trick here? or this is a result after experimental comparision.

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