tf.keras.Sequential

Sequential groups a linear stack of layers into a tf.keras.Model.

Used in the notebooks

Used in the guide Used in the tutorials

Sequential provides training and inference features on this model.

Examples:

# Optionally, the first layer can receive an `input_shape` argument:
model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(8, input_shape=(16,)))