Conv2D with 32 7x7 filters and stride of 1

Hello , I have a problem to run this part of assignment( course 2, week 1, assignment 2- part 1).

I write the code but the syntax error is appeared.

model.add(tf.keras.layers.Conv2D(32, kernel_size=(7, 7), strides=(1, 1)))

The Error:

File “”, line 29
model.add(tf.keras.layers.Conv2D(32, kernel_size=(7, 7), strides=(1, 1)))
^
SyntaxError: invalid syntax

Actually all the parentheses ( and other related syntax error) are right in the code.

Hi simamh,

Could the error be at the end of the preceding line (e.g. a trailing ‘,’ which you would not use if you build up the model using the add method)?