NetForward¶
Define a neural network module (subnet).
A subnet is a portion of a neural network that contains implicit parameters that are optimized during training. A subnet may also contain instances of other subnets. The easiest way to use a subnet is to wire its "this" output into a DeepModel node, which can be used like any other machine-learning node as part of a data pipeline (e.g., for classification or regression). The normally implicit parameters of a subnet can also be managed explicitly and by hand by invoking the subnet's initialize function (by wiring it into the Call node) to obtain an initial set of parameters, and then passing the parameters into the subnet's forward function (again by wiring it into the Call node) to compute the outputs of the subnet. Typically one would then apply the the Calculate Gradient node to the forward function to obtain a function that yields gradients, invoke the resulting gradient function given some data and parameters, and then use the resulting gradients to update the parameters (i.e., performing gradient descent). This node is used by wiring a subgraph into its graph port. The subgraph must contain one or more Placeholder nodes for the network inputs, and the network signature must name all the placeholders in some order, which is in the "Network [signature]" (or network__signature in code) port. Version 0.2.0
Ports/Properties¶
transformed¶
Network definition to use.
- verbose name: Transformed
- default value: None
- port type: DataPort
- value type: BaseNode (can be None)
- data direction: IN
seed¶
Optional random number seed.
- verbose name: Seed
- default value: None
- port type: DataPort
- value type: AnyArray (can be None)
- data direction: IN
weights¶
Network parameters.
- verbose name: Weights
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
state¶
Optional network state (in/out).
- verbose name: State
- default value: None
- port type: DataPort
- value type: dict (can be None)
- data direction: INOUT
output¶
Output of the network.
- verbose name: Output
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: OUT
arg1¶
Argument 1.
- verbose name: Arg1
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
arg2¶
Argument 2.
- verbose name: Arg2
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
arg3¶
Argument 3.
- verbose name: Arg3
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
arg4¶
Argument 4.
- verbose name: Arg4
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
arg5¶
Argument 5.
- verbose name: Arg5
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
arg6¶
Argument 6.
- verbose name: Arg6
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
arg7¶
Argument 7.
- verbose name: Arg7
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
arg8¶
Argument 8.
- verbose name: Arg8
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
arg9¶
Argument 9.
- verbose name: Arg9
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
argN¶
Additional arguments.. .
- verbose name: Argn
- default value: None
- port type: DataPort
- value type: list (can be None)
- data direction: IN
name1¶
Name 1.
- verbose name: Name1
- default value: None
- port type: StringPort
- value type: str (can be None)
val1¶
Value 1.
- verbose name: Val1
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
name2¶
Name 2.
- verbose name: Name2
- default value: None
- port type: StringPort
- value type: str (can be None)
val2¶
Value 2.
- verbose name: Val2
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
name3¶
Name 3.
- verbose name: Name3
- default value: None
- port type: StringPort
- value type: str (can be None)
val3¶
Value 3.
- verbose name: Val3
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
name4¶
Name 4.
- verbose name: Name4
- default value: None
- port type: StringPort
- value type: str (can be None)
val4¶
Value 4.
- verbose name: Val4
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
name5¶
Name 5.
- verbose name: Name5
- default value: None
- port type: StringPort
- value type: str (can be None)
val5¶
Value 5.
- verbose name: Val5
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
name6¶
Name 6.
- verbose name: Name6
- default value: None
- port type: StringPort
- value type: str (can be None)
val6¶
Value 6.
- verbose name: Val6
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
name7¶
Name 7.
- verbose name: Name7
- default value: None
- port type: StringPort
- value type: str (can be None)
val7¶
Value 7.
- verbose name: Val7
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
name8¶
Name 8.
- verbose name: Name8
- default value: None
- port type: StringPort
- value type: str (can be None)
val8¶
Value 8.
- verbose name: Val8
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
name9¶
Name 9.
- verbose name: Name9
- default value: None
- port type: StringPort
- value type: str (can be None)
val9¶
Value 9.
- verbose name: Val9
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
nameN¶
Additional argument names.. .
- verbose name: Namen
- default value: None
- port type: ListPort
- value type: list (can be None)
valN¶
Additional named argument values.. .
- verbose name: Valn
- default value: None
- port type: DataPort
- value type: list (can be None)
- data direction: IN
arg0¶
Argument 0.
- verbose name: Arg0
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
name0¶
Name 0.
- verbose name: Name0
- default value: None
- port type: StringPort
- value type: str (can be None)
val0¶
Value 0.
- verbose name: Val0
- default value: None
- port type: DataPort
- value type: object (can be None)
- data direction: IN
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
- verbose name: Set Breakpoint (Debug Only)
- default value: False
- port type: BoolPort
- value type: bool (can be None)
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.
- verbose name: Metadata
- default value: {}
- port type: DictPort
- value type: dict (can be None)