You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/MDF_specification.json
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -106,13 +106,21 @@
106
106
"type": "str",
107
107
"description": "The unique (for this Node) id of the input port,"
108
108
},
109
+
"default_value": {
110
+
"type": "Union",
111
+
"description": "Value to set at this input port if no edge connected to it."
112
+
},
109
113
"shape": {
110
114
"type": "Optional",
111
115
"description": "The shape of the input port. This uses the same syntax as numpy ndarray shapes\n(e.g., :code:`numpy.zeros(shape)` would produce an array with the correct shape"
112
116
},
113
117
"type": {
114
118
"type": "Optional",
115
119
"description": "The data type of the input received at a port."
120
+
},
121
+
"reduce": {
122
+
"type": "Optional",
123
+
"description": "Specifies how to deal with multiple inputs to one port during a single timestep: add: add up all the values; multiply: multiply the values, overwrite: just use the last value supplied (default)"
Copy file name to clipboardExpand all lines: docs/README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,13 @@ The <a href="#inputport">InputPort</a> is an attribute of a Node which allows ex
179
179
</tr>
180
180
181
181
182
+
<tr>
183
+
<td><b>default_value</b></td>
184
+
<td>Union</td>
185
+
<td><i>Value to set at this input port if no edge connected to it.</i></td>
186
+
</tr>
187
+
188
+
182
189
<tr>
183
190
<td><b>shape</b></td>
184
191
<td>Optional</td>
@@ -194,6 +201,13 @@ The <a href="#inputport">InputPort</a> is an attribute of a Node which allows ex
194
201
</tr>
195
202
196
203
204
+
<tr>
205
+
<td><b>reduce</b></td>
206
+
<td>Optional</td>
207
+
<td><i>Specifies how to deal with multiple inputs to one port during a single timestep: add: add up all the values; multiply: multiply the values, overwrite: just use the last value supplied (default)</i></td>
**metadata** Optional Optional metadata field, an arbitrary dictionary of string keys and JSON serializable values.
94
+
**id** str The unique (for this Node) id of the input port,
95
+
**default_value** Union Value to set at this input port if no edge connected to it.
96
+
**shape** Optional The shape of the input port. This uses the same syntax as numpy ndarray shapes
97
+
(e.g., **numpy.zeros(shape)** would produce an array with the correct shape
98
+
**type** Optional The data type of the input received at a port.
99
+
**reduce** Optional Specifies how to deal with multiple inputs to one port during a single timestep: add: add up all the values; multiply: multiply the values, overwrite: just use the last value supplied (default)
0 commit comments