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:
authorKoray Kavukcuoglu <koray@kavukcuoglu.org>2012-02-19 20:46:17 +0400
committerKoray Kavukcuoglu <koray@kavukcuoglu.org>2012-02-19 20:46:17 +0400
commit39978f254f979207efa11a8741e1e461cebef49e (patch)
tree095718332f1a23666be6483c9cec378ddc573bf8 /DotProduct.lua
parentaa0b8ed695b8c57610d3339d994b0c126318a097 (diff)
gradInput[2] has to be same shape as input[2]
Diffstat (limited to 'DotProduct.lua')
-rw-r--r--DotProduct.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/DotProduct.lua b/DotProduct.lua
index d16d295..bc8e854 100644
--- a/DotProduct.lua
+++ b/DotProduct.lua
@@ -17,7 +17,7 @@ function DotProduct:updateGradInput(input, gradOutput)
local gw1=self.gradInput[1];
local gw2=self.gradInput[2];
gw1:resizeAs(v1)
- gw2:resizeAs(v1)
+ gw2:resizeAs(v2)
gw1:copy( v2)
gw1:mul(gradOutput[1])