W1, A2: Functional API

I get this error when I run the function definition for ‘convolutional_model’ and the tests:

ValueError: Input 0 of layer max_pooling2d_19 is incompatible with the layer: expected ndim=4, found ndim=5. Full shape received: [1, None, 64, 64, 8]

I suspect there is some bug in the code while specifying the inputs or the parameters, but I can’t quite figure out what it is!

Some reading suggestions:
Link 1
Link 2
Link 3
Link 4