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

github.com/clementfarabet/lua---nnx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2011-10-01 00:26:08 +0400
committerClement Farabet <clement.farabet@gmail.com>2011-10-01 00:26:08 +0400
commit429f06d8e1ec2f53ed31653e7efa16e66c5bfd99 (patch)
tree0894d6156fb3420103685b17e5bd470b77ea5bb3
parentf50fcafb4736c3106cfcdb3c1d87f8c04fde3be1 (diff)
Changed api for max sampler.
-rw-r--r--SpatialMaxSampling.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/SpatialMaxSampling.lua b/SpatialMaxSampling.lua
index 670d44b..aa16701 100644
--- a/SpatialMaxSampling.lua
+++ b/SpatialMaxSampling.lua
@@ -5,8 +5,6 @@ function SpatialMaxSampling:__init(...)
xlua.unpack_class(
self, {...}, 'nn.SpatialMaxSampling',
'resample an image using max selection',
- {arg='rwidth', type='number', help='ratio: owidth/iwidth'},
- {arg='rheight', type='number', help='ratio: oheight/iheight'},
{arg='owidth', type='number', help='output width'},
{arg='oheight', type='number', help='output height'}
)
@@ -14,8 +12,6 @@ function SpatialMaxSampling:__init(...)
end
function SpatialMaxSampling:forward(input)
- self.oheight = self.oheight or self.rheight*input:size(2)
- self.owidth = self.owidth or self.rwidth*input:size(3)
input.nn.SpatialMaxSampling_forward(self, input)
return self.output
end