TransposeLayer

TransposeLayer[]

represents a net that transposes the first two levels of its input.

TransposeLayer[m->n]

represents a net that transposes levels m and n of its input.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Create a TransposeLayer:

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

Create a TransposeLayer that takes a matrix as input:

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

Apply the layer to input:

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

Scope  (2)

Possible Issues  (1)

See Also

ReshapeLayer  ReplicateLayer  FlattenLayer  PartLayer  NetChain  NetGraph  Transpose

Introduced in 2017
(11.1)