C4 w2 tf.keras.layers.Conv2D

In the previous assignment when we use Functional API to build a ConvNet, we use"tf.keras.layers.Conv2D(…)" to apply a filter.
In this assignment we just use " X = Conv2D(…)(X)"

can anyone help me to realize the difference between these two TensorFlow statements?

take a look at the respective import statements

it’s all about namespace management

1 Like