diff options
author | soumith <soumith@fb.com> | 2016-08-25 02:43:12 +0300 |
---|---|---|
committer | soumith <soumith@fb.com> | 2016-08-25 02:43:12 +0300 |
commit | 7afc79f743de6b814d04c55e357676d90e2ea5db (patch) | |
tree | 3e2b151ebffd9a8be3e39f7d8d412a3b2d87c806 /JoinTable.lua | |
parent | 358d99a1125a1ceccad44c44b6639ae5c4df3e86 (diff) |
fixing JoinTable bug for negative indices
Diffstat (limited to 'JoinTable.lua')
-rw-r--r-- | JoinTable.lua | 2 |
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 |