Intermediate layers representations

Hello,

I want to take the intermediate representations of a pretrained DeepSpeech model, before the Decoder and the Language model process the generated predictions. I want to process the outputs of all the layers of the model, e.g., the three linear layers, the LSTM and the last layer.

Until now I did not found a function to do that.

1 Like

Thank you, this post helped me a lot.

Hi , can you please tell me in layman terms what I need to do in order to get the hidden layer activations for deepspeech? This is part of a neuroscience project and I’m having bit trouble with the highly complex code.
It would be great help, been struggling with this for a month, thanks!