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
//feed, embedding+context and hidden state to RNN.
output, hidden = self.rnn(emb_con, hidden)
Shouldn't the line below be concat (embedding + output + context) instead of (embedding + hidden + context) ? Calculated hidden vector by RNN at time step t will be fed to next rnn at t+1 anyway.
output = torch.cat((embedded.squeeze(0), hidden.squeeze(0), context.squeeze(0)),
dim = 1)
prediction = self.out(output)
The text was updated successfully, but these errors were encountered:
//feed, embedding+context and hidden state to RNN.
output, hidden = self.rnn(emb_con, hidden)
Shouldn't the line below be concat (embedding + output + context) instead of (embedding + hidden + context) ? Calculated hidden vector by RNN at time step t will be fed to next rnn at t+1 anyway.
output = torch.cat((embedded.squeeze(0), hidden.squeeze(0), context.squeeze(0)),
dim = 1)
prediction = self.out(output)
The text was updated successfully, but these errors were encountered: