-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How to handle hidden state reset? #577
Comments
@Babylonehy I have the same question about how the hidden stats reset is handled. Have you found any answers? |
You can pass it in as different samples in a batch and the hidden state for each one will be kept different. You can think of it as essentially just doing a different scan for each sample in |
The training is fine, but the issue is that during online inference with a video sequence, I can’t obtain the full data for dimension B; I only have 1. However, I still want the hidden state to be passed across different frames within the same video sequence. |
They have an inference mode, which will cache the hidden state for inference. I would take a look at |
The text was updated successfully, but these errors were encountered: