NetTake
Details
- The following forms can be used for start and end:
-
n,"layer" a specified layer NetPort[{layer,"port"}] the specified input or output port of a layer NetPort["port"] an input or output port of the entire graph All all of the inputs or outputs of the graph {spec1,spec2,…} the union of the speci - NetTake[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)
Take the first two layers of a chain:
Create a net with two outputs:
Use NetTake to obtain a subnet that computes only one of the outputs:
Scope (1)
Add a new NetDecoder while taking layers:
Wolfram Research (2018), NetTake, Wolfram Language function, https://reference.wolfram.com/language/ref/NetTake.html.
Text
Wolfram Research (2018), NetTake, Wolfram Language function, https://reference.wolfram.com/language/ref/NetTake.html.
CMS
Wolfram Language. 2018. "NetTake." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NetTake.html.
APA
Wolfram Language. (2018). NetTake. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NetTake.html