Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the unpacking various sequence LSTM #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

glmanhtu
Copy link

@glmanhtu glmanhtu commented Dec 7, 2020

Refer to issue #39

Since the packed_RNN_out is padded by zeros to make sure all sequences have the same length, therefore, we can't take the last output of RNN_out to decode as output of the network. Instead, we use the secondary output of torch.nn.utils.rnn.pad_packed_sequence function to determine which element is the last of the sequence to decode
…) when GPU is not available. This will not affect the training flow on GPU machines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant