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:
authorAndreas Fidjeland <andreas@fidjeland.io>2014-02-25 21:49:37 +0400
committerAndreas Fidjeland <andreas@fidjeland.io>2014-02-25 21:49:37 +0400
commit4d63630dd70f0e26839c4ad244082aa91dcab2ed (patch)
tree3e560835ffaf537c7087906cce43126d9264d7bf /Mean.lua
parent5998d978e01c147520cb4191627592a0a167a4b6 (diff)
nn.Mean works with CudaTensors
Diffstat (limited to 'Mean.lua')
-rw-r--r--Mean.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mean.lua b/Mean.lua
index 55e7609..ebd69bd 100644
--- a/Mean.lua
+++ b/Mean.lua
@@ -7,7 +7,7 @@ function Mean:__init(dimension)
end
function Mean:updateOutput(input)
- input.torch.mean(self.output, input, self.dimension)
+ self.output:mean(input, self.dimension)
self.output = self.output:select(self.dimension, 1)
return self.output
end