ReplicateLayer

ReplicateLayer[n]

represents a net layer that takes an input of dimensions {d1,d2,} and replicates it n times to produce an output of dimensions {n,d1,d2,}.

ReplicateLayer[{n1,n2,,nm}]

represents a net layer that takes an input of dimensions {d1,d2,} and replicates it to produce an output of dimensions {n1,n2,,nm,d1,d2,}.

ReplicateLayer[dims,m]

replicates so that dims appears at position m in the list of output dimensions.

Details and Options

Examples

open all close all

Basic Examples  (2)

Create a ReplicateLayer that replicates its input 4 times:

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

Create a ReplicateLayer that replicates its input 3 times:

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

Apply the layer to data:

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

Scope  (6)

Possible Issues  (2)

Introduced in 2017
(11.1)
|
Updated in 2017
(11.2)