diff options
author | Trevor Killeen <killeentm@gmail.com> | 2017-04-06 23:55:32 +0300 |
---|---|---|
committer | Trevor Killeen <killeentm@gmail.com> | 2017-04-06 23:55:32 +0300 |
commit | 4ca9d20c05b40103167b8add5b8b4f9672a96ead (patch) | |
tree | 4cc3932af6402cb18349df168f67770b439173d5 | |
parent | 4299caa40543a9dc5da9ee9ebdf4c06717bbf2b3 (diff) |
remove global variable from test
-rw-r--r-- | test/test_rnn.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |