Hello, I’m trying to resolve this, but I don’t know why it doesnt work.
Could anyone help me?
Thanks!
- You gotta put “comma” between each layer, since they are passed as list to the
tf.keras.Sequential
function. This is a different way to build a model. - The padding, input_shape are arguments to the
tfl.ZeroPadding2D
. Thus you gotta put them inside the brackets, like this:tfl.ZeroPadding2D(padding, input_shape)
- You got an error here as well:
tf.keras.layers.Flatten()(X)
Refer The Sequential model, it will surely help you.
1 Like
Thank you very much!