FlattenLayer

FlattenLayer[]

represents a net layer that flattens any input array into a vector.

FlattenLayer[n]

represents a net layer that flattens its input to level n.

Details and Options

Examples

open all close all

Basic Examples  (2)

Create a FlattenLayer:

In[1]:=
Click for copyable input
Out[1]=

Create a FlattenLayer with specified input dimensions:

In[1]:=
Click for copyable input
Out[1]=

Apply the layer to a matrix:

In[2]:=
Click for copyable input
Out[2]=

Scope  (3)

Properties & Relations  (4)

Possible Issues  (2)

Introduced in 2016
(11.0)
|
Updated in 2017
(11.1)