Hi there,
I have successfully fine-tuned DONUT on my custom dataset for Key-Information extraction (KIE). I have also printed (accessed) last_hidden_state of encoder. Now encoder has 4 layers (model.encoder.num_layers) and I want to access Layer 1 or 2 hidden state. how can I do that?
Hi there, I have successfully fine-tuned DONUT on my custom dataset for Key-Information extraction (KIE). I have also printed (accessed) last_hidden_state of encoder. Now encoder has 4 layers (model.encoder.num_layers) and I want to access Layer 1 or 2 hidden state. how can I do that?