Closed ghost closed 7 years ago
@deepcoord how did you fix this?
--[[ Forward coupling: Copy encoder cell and output to decoder LSTM ]]-- function Seq2Seq:forwardConnect(inputSeqLen) self.decoderLSTM.userPrevOutput = nn.rnn.recursiveCopy(self.decoderLSTM.userPrevOutput, self.encoderLSTM.outputs[inputSeqLen]) self.decoderLSTM.userPrevCell = nn.rnn.recursiveCopy(self.decoderLSTM.userPrevCell, self.encoderLSTM.cells[inputSeqLen]) end
--[[ Backward coupling: Copy decoder gradients to encoder LSTM ]]-- function Seq2Seq:backwardConnect(inputSeqLen) self.encoderLSTM:setGradHiddenState(inputSeqLen, self.decoderLSTM:getGradHiddenState(0)) end
@aep @ganeshjawahar Do your solve this question?
FastLSTM with MaskZero spit out nil error.