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:

Append several layers to the end of a chain:

Scope  (1)

Append a layer and attach a NetDecoder:

Possible Issues  (1)

The input of the appended layer must be compatible with the output of the final layer in the chain:

Wolfram Research (2018), NetAppend, Wolfram Language function, https://reference.wolfram.com/language/ref/NetAppend.html.

Text

Wolfram Research (2018), NetAppend, Wolfram Language function, https://reference.wolfram.com/language/ref/NetAppend.html.

BibTeX

@misc{reference.wolfram_2020_netappend, author="Wolfram Research", title="{NetAppend}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/NetAppend.html}", note=[Accessed: 19-April-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_netappend, organization={Wolfram Research}, title={NetAppend}, year={2018}, url={https://reference.wolfram.com/language/ref/NetAppend.html}, note=[Accessed: 19-April-2021 ]}

CMS

Wolfram Language. 2018. "NetAppend." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NetAppend.html.

APA

Wolfram Language. (2018). NetAppend. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NetAppend.html