I have another question:)
I saw some codes that is
If LSTM get input as packed_sequence (pack_padded_sequence), LSTM doesn’t need initial hidden and cell state.
For example)
Without pack_padded_sequence,
out, hidden = self.lstm(input, (h0, c0))
with pack_padded_sequence,
packed = self.lstm(pack_padded_sequence_variable) #without (h0,c0)
I can not understand how it works. I saw doc in pytorch but I couldn’t figure it out. is there anyone who help me??