StefOe / indrnn-pytorch

pytorch implementation of Independently Recurrent Neural Networks https://arxiv.org/abs/1803.04831
121 stars 33 forks source link

PackedSequence support #7

Open Soonhwan-Kwon opened 6 years ago

Soonhwan-Kwon commented 6 years ago

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'

StefOe commented 5 years ago

Could you please give a short example code?

dharmesh312 commented 5 years ago

facing the same problem not working for packed sequence

dharmesh312 commented 5 years ago

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

StefOe commented 5 years ago

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.