[Week 3 Assignment 1 Exercise 1] Type error

For the one_step_attention() function in the neural machine translation assignment, I am getting the error: TypeError: ‘NoneType’ object is not subscriptable in this line:

concat = concatenator([a, s_prev])

Hi @maraks ,

Both a and s_prev are input parameters, passed to the function when it is called. So there must be something else that is causing the error. Try refresh the kernel and rerun the code from start.

Maybe your line of code for repeator() has mangled the s_prev value.