aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/lua-torch/nn/Mean.lua
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/lua-torch/nn/Mean.lua')
-rw-r--r--contrib/lua-torch/nn/Mean.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/lua-torch/nn/Mean.lua b/contrib/lua-torch/nn/Mean.lua
new file mode 100644
index 000000000..8087ac95e
--- /dev/null
+++ b/contrib/lua-torch/nn/Mean.lua
@@ -0,0 +1,14 @@
+local Mean, parent = torch.class('nn.Mean', 'nn.Sum')
+
+--[[
+
+This file is still here because of backward compatibility.
+
+Please use instead "nn.Sum(dimension, nInputDims, sizeAverage)"
+
+]]--
+
+
+function Mean:__init(dimension, nInputDims)
+ parent.__init(self, dimension, nInputDims, true)
+end