Element-Research / rnn

Recurrent Neural Network library for Torch7's nn
BSD 3-Clause "New" or "Revised" License
938 stars 314 forks source link

MaskZero causing memory leak #408

Open nafitzgerald opened 7 years ago

nafitzgerald commented 7 years ago

The following line in MaskZero can allocate new memory, which can cause a memory leak:

https://github.com/Element-Research/rnn/blob/master/MaskZero.lua#L56