WLJS LogoWLJS Notebook

NetArrayLayer

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

  • NetArrayLayer[opts] includes options for the initial value of the array or output size.

This layer is useful for creating learnable constant parameters in neural networks.

Examples

NetArrayLayer["Output" -> 3]
NetArrayLayer["Array" -> {1, 2, 3}]
NetInitialize[NetArrayLayer["Output" -> {2, 3}]]

*See the official Wolfram Language Reference for more details.

On this page