Skip to content

Effect of argument seq_lengths in RNN module #3360

Answered by cgarciae
Kajiih asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Kajiih, sorry for the late reply.

And in that case, the valid data will be in the last T indexes of the output, i.e. N-T-1 to N-1 (and the last temporal one a index N-1).

This is incorrect. The sequence will be reverse but padding will be kept at the end. For example if you have the sequence:

[ a, b, c, 0, 0 ]

0s meaning padding, it will be read as:

[ c, b, a, 0, 0 ]

I'm wondering if we should update our docstrings to reflect this?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kajiih
Comment options

Answer selected by Kajiih
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants