ConstantArrayLayer

ConstantArrayLayer[]

represents a layer that has no input and produces as output a constant array.

ConstantArrayLayer[opts]

includes options for initial value of the array or output size.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Create a ConstantArrayLayer:

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

Create an initialized ConstantArrayLayer with output dimensions specified:

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

Extract the initialized array:

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

Scope  (1)

Possible Issues  (1)

See Also

ConstantTimesLayer  ConstantPlusLayer  ThreadingLayer  NetChain  NetGraph  NetInitialize  NetTrain  NetExtract

Introduced in 2017
(11.1)