StefOe / indrnn-pytorch

pytorch implementation of Independently Recurrent Neural Networks https://arxiv.org/abs/1803.04831

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PackedSequence support

Soonhwan-Kwon opened this issue · comments

https://github.com/StefOe/indrnn-pytorch/blob/master/indrnn.py

class IndRNN(nn.Module) describes that input can be the PackedSequence but it is not.
For example,
line 232:
x.size(batch_index)
makes error
AttributedError: 'PackedSequence' object has no attribute 'size'

Could you please give a short example code?

facing the same problem not working for packed sequence

@Soonhwan-Kwon do you have a solution for this ?????

Right now it does not support PackedSequences. I might look into this at some point, but you are welcome to submit a patch for this.