WARNING:tensorflow:Model was constructed with shape (None, 188) for input, but it was called on an input with incompatible shape (188,)

Issue

Can someone help me to fix this? tensorflow is really annoying.

WARNING:tensorflow:Model was constructed with shape (None, 188) for input KerasTensor(type_spec=TensorSpec(shape=(None, 188), dtype=tf.float32, name=’input_9′), name=’input_9′, description="created by layer ‘input_9’"), but it was called on an input with incompatible shape (188,).

enter image description here

enter image description here

Solution

You seem to be missing a dimension. Try batching your data:

train_set = train_set.batch(32)

Answered By – AloneTogether

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published