Skip to content

Commit

Permalink
remove global variable from test
Browse files Browse the repository at this point in the history
  • Loading branch information
killeent committed Apr 6, 2017
1 parent 4299caa commit 4ca9d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_rnn.lua
Expand Up @@ -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
Expand Down

0 comments on commit 4ca9d20

Please sign in to comment.