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/IR.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,14 +162,17 @@ input|ValueInfo[]|The input “parameters” of the graph, possibly initialized
162
162
output|ValueInfo[]|The output parameters of the graph. Once all output parameters have been written to by a graph execution, the execution is complete.
163
163
value_info|ValueInfo[]|Used to store the type and shape information of values that are not inputs or outputs.
164
164
165
-
Each graph MUST define the names and types of its inputs and outputs, which are specified as ‘value info’ structures, having the following properties:
165
+
Each main (top-level) graph MUST define the names and types of its inputs and outputs, which are specified as ‘value info’ structures, having the following properties:
166
166
167
167
Name|Type|Description
168
168
|---|---|---|
169
169
name|string|The name of the value/parameter.
170
170
type|Type|The type of the value.
171
171
doc_string|string|A human-readable documentation for this value. Markdown is allowed.
172
172
173
+
Nested subgraphs (specified as attribute values) MUST define the names of its inputs and outputs
174
+
and MAY define the types of its inputs and outputs.
175
+
173
176
Each graph MUST specify a name.
174
177
175
178
The graph MUST adhere to single static assignment (SSA) for all node outputs; this means that all node output names MUST be unique within a graph.
@@ -265,9 +268,9 @@ The properties ‘name’ and ‘type’ are required on all attributes, and ‘
265
268
266
269
#### Variadic Inputs and Outputs
267
270
268
-
The last input or output of an operator MAY be marked as variadic. For example, the operator 'Max()' can be used to compute the maximum of a varying number of input values.
271
+
The last input or output of an operator MAY be marked as variadic. For example, the operator 'Max()' can be used to compute the maximum of a varying number of input values. A variadic operator has an associated minimum arity, which specifies the minimum number of operands that must be specified.
269
272
270
-
For each variadic operator input, one or more node inputs must be specified. For each variadic operator output, one or more node outputs must be specified.
273
+
For each variadic operator input, N or more node inputs must be specified where N is the minimum arity of the operator. For each variadic operator output, N or more node outputs must be specified where N is the minimum arity of the operator.
0 commit comments