DeepLearning/FlattenLayer - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : DeepLearning/FlattenLayer

DeepLearning

 FlattenLayer
 flatten layer

 Calling Sequence FlattenLayer(units,opts)

Parameters

 units - positive integer opts - (optional) one or more keyword options described below

Description

 • 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](..).

Details

 • 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.

Compatibility

 • The DeepLearning[FlattenLayer] command was introduced in Maple 2021.
 • For more information on Maple 2021 changes, see Updates in Maple 2021.

 See Also