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

github.com/soumith/cudnn.torch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Killeen <killeentm@gmail.com>2017-04-06 23:55:32 +0300
committerTrevor Killeen <killeentm@gmail.com>2017-04-06 23:55:32 +0300
commit4ca9d20c05b40103167b8add5b8b4f9672a96ead (patch)
tree4cc3932af6402cb18349df168f67770b439173d5
parent4299caa40543a9dc5da9ee9ebdf4c06717bbf2b3 (diff)
remove global variable from test
-rw-r--r--test/test_rnn.lua2
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