C5W3A1-Neural_machine_translation_with_attention - Exercise 2 - modelf

I am gettin this following error when i try to run #UNIT TEST cell for modelf function :
AttributeError: The layer “concatenate_4” has multiple inbound nodes, with different output shapes. Hence the notion of “output shape” is ill-defined for the layer. Use get_output_shape_at(node_index) instead.

If you are passing a list of 2 items to the concatenate instance, please click my name and message your notebook as an attachment.

I just ran your notebook on coursera lab environment and things work as expected.
If you’re using a custom environment to solve the problems, do ensure that library versions match with the coursera environment.

[['InputLayer', [(None, 30, 37)], 0], ['InputLayer', [(None, 64)], 0], ['Bidirectional', (None, 30, 64), 17920], ['RepeatVector', (None, 30, 64), 0, 30], ['Concatenate', (None, 30, 128), 0], ['Dense', (None, 30, 10), 1290, 'tanh'], ['Dense', (None, 30, 1), 11, 'relu'], ['Activation', (None, 30, 1), 0], ['Dot', (None, 1, 64), 0], ['InputLayer', [(None, 64)], 0], ['LSTM', [(None, 64), (None, 64), (None, 64)], 33024, [(None, 1, 64), (None, 64), (None, 64)], 'tanh'], ['Dense', (None, 11), 715, 'softmax']]
All tests passed!

i updated the lab and restarted the server and now it’s all good thanks