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
in the code "Transformers from Scratch " in defining the function for source mask why did change the shape from N,src_len to N,1,1,src_len? I know its related to line "energy = energy.masked_fill(mask == 0, float("-1e20"))" but can u explain more?
The text was updated successfully, but these errors were encountered:
in the code "Transformers from Scratch " in defining the function for source mask why did change the shape from N,src_len to N,1,1,src_len? I know its related to line "energy = energy.masked_fill(mask == 0, float("-1e20"))" but can u explain more?
The text was updated successfully, but these errors were encountered: