Skip to content

Commit 8a57005

Browse files
added gradInput:resizeAs to ConcatTable
1 parent dd79d5e commit 8a57005

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ConcatTable.lua

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function ConcatTable:updateGradInput(input, gradOutput)
6363
end
6464
retable(self.gradInput, currentGradInput,
6565
function(t, k, v)
66+
t[k]:resizeAs(v)
6667
t[k]:copy(v)
6768
end
6869
)

0 commit comments

Comments
 (0)