The Sequential class - Keras
https://keras.io/api/models/sequentialAdds a layer instance on top of the layer stack. Arguments. layer: layer instance.; Raises. TypeError: If layer is not a layer instance.; ValueError: In case the layer argument does not know its input shape.; ValueError: In case the layer argument has multiple output tensors, or is already connected somewhere else (forbidden in Sequential models).