From 31bf6a663f010e7873bcb7d8603420b82f9beb5d Mon Sep 17 00:00:00 2001 From: Soumith Chintala Date: Wed, 4 Mar 2015 08:35:10 -0500 Subject: Revert "Fixed SpatialAveragePooling - added division by filter size" --- test.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test.lua') diff --git a/test.lua b/test.lua index 63697b9..f1576fc 100644 --- a/test.lua +++ b/test.lua @@ -1706,7 +1706,7 @@ function nntest.SpatialAveragePooling() mytester:asserteq(berr, 0, torch.typename(module) .. ' - i/o backward err ') local sap = nn.SpatialSubSampling(from, ki, kj, si, sj) - sap.weight:fill(1.0/ki/kj) + sap.weight:fill(1.0) sap.bias:fill(0.0) local output = module:forward(input) @@ -1737,7 +1737,7 @@ function nntest.SpatialAveragePooling() mytester:asserteq(berr, 0, torch.typename(module) .. ' - i/o backward err (Batch) ') local sap = nn.SpatialSubSampling(from, ki, kj, si, sj) - sap.weight:fill(1.0/ki/kj) + sap.weight:fill(1.0) sap.bias:fill(0.0) local output = module:forward(input) -- cgit v1.2.3