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 your forward method, inside Encoder, you specify that
#outputs = [src len, batch size, hid dim * num directions]
#hidden = [n layers * num directions, batch size, hid dim]
#hidden is stacked [forward_1, backward_1, forward_2, backward_2, ...]
#outputs are always from the last layer
While the dimensions are correct, I think that it is the outputs that are stacked, and the hidden is from the last layer (see GRU docs)
The text was updated successfully, but these errors were encountered:
In your
forward
method, insideEncoder
, you specify thatWhile the dimensions are correct, I think that it is the
outputs
that are stacked, and the hidden is from the last layer (see GRU docs)The text was updated successfully, but these errors were encountered: