LSTM as decoder - nlp - PyTorch Forums
discuss.pytorch.org › t › lstm-as-decoderJan 14, 2021 · consider the case of machine translation using encoder decoder architecture. Consider the case when nn.Lstm is used as encoder as well as decoder. Assume the number of nn.LstmCell in both is 5. In case of encoder, during the forward propagation, we send a batch of sentences, and for each sentence, word_i is passed as input to LstmCell_i. This Lstm finally returns the hidden state to decoder ...
LSTM as decoder - nlp - PyTorch Forums
https://discuss.pytorch.org/t/lstm-as-decoder/10883114.01.2021 · consider the case of machine translation using encoder decoder architecture. Consider the case when nn.Lstm is used as encoder as well as decoder. Assume the number of nn.LstmCell in both is 5. In case of encoder, during the forward propagation, we send a batch of sentences, and for each sentence, word_i is passed as input to LstmCell_i. This Lstm finally …