DLS_C4_W1_Assign2_Exercise 2 - convolutional_model

In other words, the Layer function is a function that returns another function as its return value. Then you invoke that returned function with the appropriate input tensor(s). That’s why you end up with two separate sets of parentheses in one of those expressions.

Here’s another thread that gives a nice introduction to the TF/Keras Sequential and Functional APIs.

1 Like