DLS course4 week 1

I am writing
tf.keras.layers.Conv2D(filters=32,kernel_size=7,stride=(1,1))

I am getting a syntax error. Can you please help with this ?

The parameter is should be called strides.

Please see this community user guide and move your topic to the correct sub-category.

still its showing syntax error

Here’s the fixed code based on the suggestion:

>>> tf.keras.layers.Conv2D(filters=32,kernel_size=7,strides=(1,1))
<keras.layers.convolutional.conv2d.Conv2D object at 0x7f38cf113fa0>
>>> 

If you’re seeing an error, please create a new topic and provide the stacktrace. If it’s insufficient, a mentor will ask for your notebook.

It was a list and I had to put “,” after every line.
Resolved
Thank You