Welcome to mirror list, hosted at ThFree Co, Russian Federation.

LSTM.lua - github.com/soumith/cudnn.torch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 29c199cf820871d61b98c583c9f7de90cd526341 (plain)
1
2
3
4
5
6
7
local LSTM, parent = torch.class('cudnn.LSTM', 'cudnn.RNN')

function LSTM:__init(inputSize, hiddenSize, numLayers, batchFirst)
    parent.__init(self,inputSize, hiddenSize, numLayers, batchFirst)
    self.mode = 'CUDNN_LSTM'
    self:reset()
end