Hi, I have trying to follow this assignment, however, I am stuck with the following error,

**“The layer “lstm_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.”

Here is the Function definition which I am implementing. Any body can find the bug??

Moderator Edit: Solution Code Removed

First, please note that sharing your code is not allowed. Next time, only share your full error.

Regarding your error, it is given in the notebook that:

- Get the index of the maximum value of the predicted output using

`tf.math.argmax`

along the last axis.

So, you need to set axis in `tf.math.argmax`

.

I already tried that, I mean tf.math.argmax(------, axis = -1) but it was not working.

I restarted the kernel and it worked fine. Thank you for your prompt response.