From 42366648d1a45fa012f6ded894215898d099d030 Mon Sep 17 00:00:00 2001 From: Soumith Chintala Date: Sun, 5 Apr 2015 19:14:53 -0400 Subject: reducing adaptive maxpooling's test limits (mostly for travis to not suck) --- test.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test.lua') diff --git a/test.lua b/test.lua index 8f08809..326909e 100644 --- a/test.lua +++ b/test.lua @@ -1806,10 +1806,10 @@ end function nntest.SpatialAdaptiveMaxPooling() local from = math.random(1,5) - local ki = math.random(1,12) - local kj = math.random(1,12) - local ini = math.random(1,64) - local inj = math.random(1,64) + local ki = math.random(1,5) + local kj = math.random(1,5) + local ini = math.random(1,16) + local inj = math.random(1,16) local module = nn.SpatialAdaptiveMaxPooling(ki,kj) local input = torch.rand(from,ini,inj) @@ -1822,7 +1822,7 @@ function nntest.SpatialAdaptiveMaxPooling() mytester:asserteq(berr, 0, torch.typename(module) .. ' - i/o backward err ') -- batch - local nbatch = math.random(2,5) + local nbatch = math.random(1,3) input = torch.rand(nbatch,from,ini,inj) module = nn.SpatialAdaptiveMaxPooling(ki,kj) -- cgit v1.2.3