NetDrop
Details
- For NetDrop[chain,{start,end}], the start and end can be given as an integer n, which specifies the n, or "name", which specifies a named layer in a NetChain that was constructed using <"name"->layer,… >.
- When removing layers from the interior of a NetChain, the input shape of the first removed layer and the output shape of the last removed layer must match.
- Any NetEncoder or NetDecoder that is present on the chain will be preserved, if possible.
- NetDrop[net,spec,"port1"->spec1,…] can be used to give types for the input and/or output of the resulting NetChain or NetGraph, using the normal type specifications those functions allow. The new port specifications will replace any existing NetEncoder, NetDecoder or type.
Examples
open allclose allBasic Examples (2)
Scope (1)
Add a new NetDecoder while dropping layers:
Possible Issues (1)
When removing layers from the interior of a NetChain, the input shape of the first removed layer and the output shape of the last removed layer must match:
Wolfram Research (2018), NetDrop, Wolfram Language function, https://reference.wolfram.com/language/ref/NetDrop.html.
Text
Wolfram Research (2018), NetDrop, Wolfram Language function, https://reference.wolfram.com/language/ref/NetDrop.html.
CMS
Wolfram Language. 2018. "NetDrop." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NetDrop.html.
APA
Wolfram Language. (2018). NetDrop. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NetDrop.html