Skip to content

← deep_learning package

NetShare

Reuse a materialized network in a computational graph.

This node allows you to use the same network in multiple places in a computational graph, sharing the same weights. To use this, you need to first materialize a network definition using the "Materialize Net" (NetMaterialize) node. You can then wire the "this" output of that node into the "materialized" input of this node. The node can be used in two equivalent styles: 1) have a main instantiation of the network that is used somewhere in your graph (in the form of a NetMaterialize node) and then have one or more secondary uses in the graph that use the NetShared node that reference the main copy, or 2) have a materialize node that is not directly embedded in a computation, but which merely serves as a node to which several NetShared nodes refer, which are then embedded in some computation. Version 0.2.0

Ports/Properties

materialized

Materialized network to use.

  • verbose name: Materialized
  • default value: None
  • port type: DataPort
  • value type: BaseNode (can be None)
  • data direction: IN

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)