DeepLearning
FlattenLayer
flatten layer
Calling Sequence
Parameters
Description
Details
Compatibility
FlattenLayer(units,opts)
units
-
positive integer
opts
(optional) one or more keyword options described below
FlattenLayer(units,opts) creates a flattening neural network layer with units units.
This function is part of the DeepLearning package, so it can be used in the short form FlattenLayer(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[FlattenLayer](..).
The implementation of FlattenLayer uses tf.keras.layers.Flatten from the TensorFlow Python API. Consult the TensorFlow Python API documentation for tf.keras.layers.Flatten for more information.
The DeepLearning[FlattenLayer] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
DeepLearning Overview
Download Help Document
What kind of issue would you like to report? (Optional)