Skip to content

Instantly share code, notes, and snippets.

View thirdwing's full-sized avatar
🏠
Working from home

Qiang Kou (KK) thirdwing

🏠
Working from home
View GitHub Profile
@sbodenstein
sbodenstein / rnn_test.lua
Created July 27, 2016 23:11
Compare Torch + MXNet cuDNN RNN API's
--
require 'cudnn'
require 'cunn'
torch.setdefaulttensortype('torch.FloatTensor')
-- Get weight dim
function checkSums(rnn, seqLength, batch, inputDim, hiddenSize, layerNum, bidirectional)
rnn:reset()