Convert encoder output to decoder input
#2
by
harshj94
- opened
Can you provide an example on how to convert encoder output to decoder input? the sample codes provided use sample input on both encoder and decoder. I am having challenge to convert encoder output to decoder input for inference.
Please take a look at app.py code here https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/trocr/app.py for how encoder output is fed to the decoder. Let us know if you still any issues with this.