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

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

function GRU:__init(inputSize, hiddenSize, numLayers, batchFirst, dropout)
    parent.__init(self,inputSize, hiddenSize, numLayers, batchFirst, dropout)
    self.mode = 'CUDNN_GRU'
    self:reset()
end