C5 W2 A2: TypeError: Error converting shape to a TensorShape DLS

Ps help me to troubleshoot the error msg below for UNQ_C5, Emojify_V2 :
TypeError: Error converting shape to a TensorShape: Dimension value must be integer or None or have an index method, got value ‘(4,)’ with type ‘<class ‘tuple’>’.

If there is more to the assert log, please post it via a screen capture.

The issue seems to be with code below in my notebook:

The full error log below:

Thank you

Just remove the brackets around the input_shape variable
When you use (input_shape) it takes it as a tuple and not an integer
Just do shape=input_shape
Hope this helps
Thanks and Regards,
Mayank Ghogale

Worked like a charm! Awesome! Thank you so much :smiley:

Glad it worked!
You are welcome sir