From 4ca9d20c05b40103167b8add5b8b4f9672a96ead Mon Sep 17 00:00:00 2001 From: Trevor Killeen Date: Thu, 6 Apr 2017 13:55:32 -0700 Subject: remove global variable from test --- test/test_rnn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_rnn.lua b/test/test_rnn.lua index 859918b..33f6891 100644 --- a/test/test_rnn.lua +++ b/test/test_rnn.lua @@ -451,7 +451,7 @@ function cudnntest.testVariableLengthSequences() {11, 4} } for _, pair in ipairs(corresponding) do - sep, batched = unpack(pair) + local sep, batched = unpack(pair) local diff = torch.csub(separate[sep], packedOutput[batched]):abs():sum() mytester:assert(diff < 1e-7) end -- cgit v1.2.3