C4W2_Assignment exercise 3 decoder error

In the exercise 3 decoder, I have been unable to solve this error. Can anyone help?

I am stuck on this error and unable to fix it. it would be a great help If anyone has any hints who faced the same issue.

I’m not a mentor for this course, but this assignment looks similar to one I am familiar with.

Maybe the index ‘i’ you created in line 63 should be used as an index for each specific decoder layer “dec_layers”?


Thanks a lot. It was silly of me that I didn’t see that. that solves the problem.