C4_W1_Assignment 2_Exercise 1

I am a bit confused about how to implement the forward propagation in this exercise.
I want to proceed step by step and need some hints please. The first error I get is about the ZerroPadding2D as:

[code removed]

module 'tensorflow' has no attribute 'ZeroPadding2D'

Where am I wrong?

Module reference is incorrect for tensorflow.keras.layers.ZeroPadding2D

You have 2 import statements

import tensorflow as tf
import tensorflow.keras.layers as tfl

So use one of the two:


Please clean up code references in your post.

1 Like