Open liuxuan0526 opened 7 years ago
https://github.com/Element-Research/rnn/blob/master/SeqLSTM.lua#L381
self.grad_next_h = torch.mm(grad_a, Wh:t())
This line keeps allocating new GPU memory, which makes the GPU memory usage unstable. Replace with an inplace operation?
https://github.com/Element-Research/rnn/blob/master/SeqLSTM.lua#L381
This line keeps allocating new GPU memory, which makes the GPU memory usage unstable. Replace with an inplace operation?