it needs to know the outputSize, which is either a number or torch.LongStorage, or table thereof
This is currently untrue as there is no case for it in recursiveResizeZero! This PR remedies this by treating a table of LongStorages as a table of tables.
Note that the initial check in __init guarantees that the only other input type to recursiveResizeZero is number, so checking that type(size) ~= 'number' is valid.
According to the docs for
Recurrence
,This is currently untrue as there is no case for it in
recursiveResizeZero
! This PR remedies this by treating a table ofLongStorage
s as a table of tables.Note that the initial check in
__init
guarantees that the only other input type torecursiveResizeZero
isnumber
, so checking thattype(size) ~= 'number'
is valid.