kerasadf.layers.core.Flatten

class kerasadf.layers.core.Flatten(data_format=None, **kwargs)

Bases: ADFLayer

Flattens the input. Does not affect the batch size.

Assumed Density Filtering (ADF) version of keras.layers.Flatten.

Parameters:
data_format{“channels_last”, “channels_first”}, optional

The ordering of the dimensions in the inputs. “channels_last” corresponds to inputs with shape (batch, ..., channels) while “channels_first” corresponds to inputs with shape (batch, channels, ...). It defaults to the image_data_format value found in your Keras config file at ~/.keras/keras.json. If you never set it, then it will be “channels_last”.

call(inputs)
compute_output_shape(input_shape)
get_config()