-
-
Notifications
You must be signed in to change notification settings - Fork 2.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 get intermediate values of pretrained models? #524
Comments
Hello @snie2012 that's a good idea - unfortunately there is currently no in-built way to do this, but this is something we should really add. I'll add a 'feature' tag to this issue. For now, one thing you could do is to modify the |
Thanks for your reply @alanakbik . It'll be great if there is built in method to do this. Currently, I manage to use
|
Ah this is great and might be a good blueprint for a convenience method that uses hooks like this to get the embeddings. So thanks for sharing this solution! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is it possible to get the intermediate values of the hidden layers for the pretrained sequence tagging models when making prediction? For example, the output of the LSTM layer of a pretrained POS tagging model. If so, how?
The text was updated successfully, but these errors were encountered: