This function calculates the attention score in bilinear form.
the attention score between the i-th source hidden state and the j-th decoder hidden state is computed by the following equation: where W α ∈ R H×H is a parameter matrix, and α j [i] denotes i-th element of α j .