Last answered:

24 Apr 2024

Posted on:

17 Nov 2022

0

Sequential error

ValueError: Exception encountered when calling layer "sequential" (type Sequential).

Input 0 of layer "conv2d_3" is incompatible with the layer: expected axis -1 of input shape to have value 2, but received input with shape (None, 28, 28, 1)

Call arguments received by layer "sequential" (type Sequential):
• inputs=tf.Tensor(shape=(None, 28, 28, 1), dtype=float32)
• training=True
• mask=None

1 answers ( 0 marked as helpful)
Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Posted on:

24 Apr 2024

0

I had this same error, I restarted my kernel and ran all cells. It worked!

Submit an answer