Error in inference code- encoder decoder model with attention

Without inference model, I am able to train the model. But when I write code for inference with attention following error in the attached image pops. Kindly help me with his.

Hi @sowkarthika_s,
Iā€™m not sure about this issue, @prem @gokulnc can you guys help?

1 Like