in the function convolutional_model(input_shape), when i put the value of
Z1= tf.keras.layers.Conv2D(input_shape, filters = 8, kernel_size = (4,4), strides=1, padding=‘same’)
i get the error: init() got multiple values for argument ‘filters’
Can anyone help me out, what have i done wrong and how can i correct it?
You are actually passing filters twice: Once as a positional argument and another as a keyword argument.
Conv2D doesn’t take input_shape as parameters: