What kind of operation do we have here with this final x?

x = layers.Dense(1024, activation=‘relu’)(x)

Hi @Sam_Faraday, there the “final x” is connected to the Dense layer you declared in that line.

The following 2 examples do the same thing: the Input Layer is connected to the Dense layer.

# Example 1
x1 = layers.Input(input_shape)
x2 = layers.Dense(1024, activation=‘relu’)(x1)
# Example 2
x = layers.Input(input_shape)
x = layers.Dense(1024, activation=‘relu’)(x)

Raymond

Thanks a lot, Raymond Kwok

Several fellow learners have found this old thread helpful.

The first section discusses the Sequential model syntax, followed by Functional. Cheers.