TransposeLayer

TransposeLayer[]

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

TransposeLayer[m<->n]

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

TransposeLayer[{m1<->n1,m2<->n2,}]

represents a net layer that sequentially transposes levels mi and ni of its input.

Details and Options

Examples

open all close 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  (4)

Possible Issues  (1)

Introduced in 2017
(11.1)
|
Updated in 2019
(12.0)