Week 3 Assignment 1 Exercise 3

I passed all the test cases before this exercise but when I try to fit the model. I got this error, I don’t understand why I am getting this in spite of passing all the test cases previously.

Hi @shafi123 ,

The kernel can become inactive after 30 mins or so. Try refreshing the kernel and rerun the code from start.

I tried restarting the kernel and run the whole code again, but the same error coming.

Hi @shafi123 ,

This is an error raised by the TensorFlow utility function due to the two structures, input structure and the shallow structure, are of different length. If you have unit tested all your code, the problem that could cased this behaviour is likely one of the structure is not correctly referenced. So, I suggest refreshing the kernel and clear all output, then rerun the code from start.