DLS4 Week1 Assignment 2 part 2 - how to pass on data to next line

Yes, it’s the right approach.
There is the another thread to discuss about the Functional API and how to pass parameters.
Please see this link Syntax - A1 = tf.keras.layers.ReLU()(Z1)