keras.layers.Flatten(input_shape(28,28)), code example Example: flatten tf keras tf.keras.layers.Flatten( data_format=None, **kwargs )