You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or if someone can show where the attention is in the source code model/cell,i just find in model.py,the anatation are asa fllow in line232:
The weight alpha[i, j] for each hj is computed as follows:
energy = a(s(i-1), H(j))
alpha = softmax(energy)
Where a is a feed forward network.
and in cell.py line 90,there shows how alpha calculate
Hey
Is there any way to get the attention weights? That would be super nice :)
The text was updated successfully, but these errors were encountered: