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

github.com/torch/nn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Zagoruyko <zagoruyko2@gmail.com>2016-08-13 14:51:23 +0300
committerSergey Zagoruyko <zagoruyko2@gmail.com>2016-08-13 14:51:23 +0300
commit8841499f2573f61b24762549d52a0406060600bd (patch)
tree9473525a5a127b65f5c95414994439f4b53b2cfd
parent461701f263ef3b1bc656bc913d93744f2db8177f (diff)
fix typos in tests
-rw-r--r--test.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.lua b/test.lua
index e288e25..21f330c 100644
--- a/test.lua
+++ b/test.lua
@@ -4766,7 +4766,7 @@ function nntest.LookupTable()
for _, normType in ipairs{1, 2, math.random()} do
local module = nn.LookupTable(totalIndex, entry_size, 0, maxNorm, normType)
local oriW = module.weight:clone()
- output = module:updateOutput(input)
+ local output = module:updateOutput(input)
-- check output is of small norm
for j = 1,output:size(1) do
local norm = torch.norm(output:select(1, j), normType)
@@ -6360,7 +6360,7 @@ function nntest.VolumetricReplicationPadding()
local padLeft = math.random(-3,3)
local padRight = math.random(-3,3)
local padTop = math.random(-3,3)
- local padBotom = math.random(-3,3)
+ local padBottom = math.random(-3,3)
local padFront = math.random(3,3)
local padBack = math.random(3,3)
local jac = nn.Jacobian