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:
authorClement Farabet <clement.farabet@gmail.com>2012-07-23 06:22:51 +0400
committerClement Farabet <clement.farabet@gmail.com>2012-07-23 06:22:51 +0400
commit37b738909113cd43b2d9a15ff279d737134a9462 (patch)
tree9a343328ff19a5d4afb6262f63713778abb6377f /SpatialDivisiveNormalization.lua
parentce90e69dc9784b3b22f42f5955044235c3a5fdfe (diff)
Fixed auto config for normalization operators.
If no 'thresval' is passed, it now inherits from 'threshold'.
Diffstat (limited to 'SpatialDivisiveNormalization.lua')
-rw-r--r--SpatialDivisiveNormalization.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/SpatialDivisiveNormalization.lua b/SpatialDivisiveNormalization.lua
index 33668e9..7715402 100644
--- a/SpatialDivisiveNormalization.lua
+++ b/SpatialDivisiveNormalization.lua
@@ -7,7 +7,7 @@ function SpatialDivisiveNormalization:__init(nInputPlane, kernel, threshold, thr
self.nInputPlane = nInputPlane or 1
self.kernel = kernel or torch.Tensor(9,9):fill(1)
self.threshold = threshold or 1e-4
- self.thresval = thresval or 1e-4
+ self.thresval = thresval or threshold or 1e-4
local kdim = self.kernel:nDimension()
-- check args