

NetAppend
Details and Options

- The input of the appended layer must be compatible with the output of the final layer in the chain.
- Any NetDecoder previously attached to the end of net will be removed.
- NetAppend takes the following options:
-
"Input" Automatic type for the input of the resulting chain "Output" Automatic type for the output of the resulting chain - Options "Input" and "Output" support the normal type specifications allowed by NetChain, including NetEncoder and NetDecoder.
Examples
open all close allBasic Examples (3)
Scope (3)
Append a layer and attach a NetDecoder:
Create a NetChain with NetAppend:
Append a layer to a NetGraph with one output:
Options (6)
"Input" (3)
Set the input shape of the net:
Set a NetEncoder for the net:
Using this option is equivalent to using NetReplacePart on the returned net:
"Output" (3)
Set a NetDecoder for the net:
Using this option is equivalent to using NetReplacePart on the returned net:
An existing NetDecoder can be added back to the returned net using this option, provided it is compatible with the new final layer:
Tech Notes
Related Guides
Text
Wolfram Research (2018), NetAppend, Wolfram Language function, https://reference.wolfram.com/language/ref/NetAppend.html (updated 2021).
CMS
Wolfram Language. 2018. "NetAppend." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. 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
BibTeX
@misc{reference.wolfram_2025_netappend, author="Wolfram Research", title="{NetAppend}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/NetAppend.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_netappend, organization={Wolfram Research}, title={NetAppend}, year={2021}, url={https://reference.wolfram.com/language/ref/NetAppend.html}, note=[Accessed: 15-August-2025]}