How to handle padding during inference with a bi-directional RNN/LSTM? #4392
Unanswered
Chulabhaya
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all! I am training a classifier bi-directional LSTM classifier model that is training on trajectories. During the training phase, I can use a batch of fixed-length trajectories and use zero padding and masking to account for trajectories in that batch that are of different lengths to ignore the padded data.
However, how do I ignore padded data during inference? I can set a fixed size for a trajectory, but if the trajectory ends early and part of my input data is padded with zeros, my bi-directional LSTM is going to process those padding values as legitimate values, right? Do I just ignore the padding being processed? I'm not sure how to handle this so any help would be greatly appreciated!
For context, my network is below:
Beta Was this translation helpful? Give feedback.
All reactions