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:
authorsoumith <soumith@fb.com>2016-08-25 02:43:12 +0300
committersoumith <soumith@fb.com>2016-08-25 02:43:12 +0300
commit7afc79f743de6b814d04c55e357676d90e2ea5db (patch)
tree3e2b151ebffd9a8be3e39f7d8d412a3b2d87c806 /JoinTable.lua
parent358d99a1125a1ceccad44c44b6639ae5c4df3e86 (diff)
fixing JoinTable bug for negative indices
Diffstat (limited to 'JoinTable.lua')
-rw-r--r--JoinTable.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/JoinTable.lua b/JoinTable.lua
index 0d20fb9..6ab68e1 100644
--- a/JoinTable.lua
+++ b/JoinTable.lua
@@ -11,7 +11,7 @@ end
function JoinTable:_getPositiveDimension(input)
local dimension = self.dimension
if dimension < 0 then
- dimension = input:dim() + dimension + 1
+ dimension = input[1]:dim() + dimension + 1
elseif self.nInputDims and input[1]:dim()==(self.nInputDims+1) then
dimension = dimension + 1
end