NetAppend

NetAppend[chain,layer]

appends a layer onto a NetChain.

NetAppend[chain,{layer1,layer2,}]

appends several layers to a NetChain.

Details and Options

  • The input of the appended layer must be compatible with the output of the final layer in the chain.
  • Any NetDecoder attached to the end of the chain will be removed.
  • NetAppend[chain,layerspec,"Output"spec] can be used to specify a type for the output of the resulting chain, using the normal type specifications allowed by NetChain. The new port specification will replace any existing NetDecoder or type.

Examples

open allclose all

Basic Examples  (2)

Append a layer to the end of a chain:

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

Append several layers to the end of a chain:

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

Scope  (1)

Possible Issues  (1)

See Also

NetPrepend  Append  NetInsert  NetDelete  NetTake  NetDrop  NetExtract  NetFlatten  NetReplace  NetReplacePart  NetRename  NetChain  NetDecoder

Tutorials

Introduced in 2018
(11.3)