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


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

Details and Options


open allclose all

Basic Examples  (2)

Create a ConstantArrayLayer:

Create an initialized ConstantArrayLayer with output dimensions specified:

Extract the initialized array:

Scope  (1)

Create a ConstantArrayLayer with a specific initial value for the array:

Embed the layer in a graph that raises the input to a power of the array elementwise:

Possible Issues  (1)

ConstantArrayLayer cannot accept symbolic arrays:

Introduced in 2017
Updated in 2020