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:
authorIvo Danihelka <ivo@danihelka.net>2012-10-12 14:16:00 +0400
committerIvo Danihelka <ivo@danihelka.net>2012-10-12 14:16:00 +0400
commitffa6395c00d5cf66467733bd0b19364a503704be (patch)
tree8a853f6faf8097ae62a075fd83125bd84ad2507f
parent693ef8f04e53c97a6a7c6dcb73db7865f51b0a65 (diff)
Made the private functions to be local.
-rw-r--r--SpatialConvolutionMap.lua2
-rw-r--r--test/test.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/SpatialConvolutionMap.lua b/SpatialConvolutionMap.lua
index 11718fd..4f6609e 100644
--- a/SpatialConvolutionMap.lua
+++ b/SpatialConvolutionMap.lua
@@ -54,7 +54,7 @@ function nn.tables.random(nin, nout, nto)
return tbl
end
-function constructTableRev(conMatrix)
+local function constructTableRev(conMatrix)
local conMatrixL = conMatrix:type('torch.LongTensor')
-- Construct reverse lookup connection table
local thickness = conMatrixL:select(2,2):max()
diff --git a/test/test.lua b/test/test.lua
index 7b20bc7..3097431 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -795,7 +795,7 @@ function nntest.SpatialConvolutionMap()
mytester:asserteq(0, berr, torch.typename(module) .. ' - i/o backward err ')
end
-function batchcompare(smod, sin, plist)
+local function batchcompare(smod, sin, plist)
local bs = torch.LongStorage(sin:size():size()+1)
bs[1] = 1
for i=1,sin:size():size() do bs[i+1] = sin:size()[i] end