model.add(layers.Flatten( input_shape=(64,64,3) code example Example: flatten tf keras tf.keras.layers.Flatten( data_format=None, **kwargs )