WLJS LogoWLJS Notebook

NetArray

NetArray[] represents an array in a net.

NetArray["name"] uses "name" as an identifier to share the array in more than one layer.

NetArray[prop -> value] specifies the property prop for the array.

NetArray[<|"Name" -> name, "Array" -> array, …|>] specifies several properties for the array.

Examples

Create a named array to share weights:

NetArray["shared"]

Specify array initialization:

NetArray["Weights", "Array" -> RandomReal[{-1, 1}, {10, 5}]]

Please visit the official Wolfram Language Reference for more details.

On this page