Skip to content

Commit 4bf14f6

Browse files
Allow allowed ranks to be a range
1 parent f61292d commit 4bf14f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ Since the {{MLOperand/[[builder]]}} object is bound by the {{MLGraphBuilder/cons
12781278

12791279
If an operation supports only a subset of {{MLOperandDataType}}s, the <dfn>allowed data types</dfn> for each of the operation's input operands, including both positional arguments and options, are given as either an explicit list of {{MLOperandDataType}}s, or a constraint that the operand's [=MLOperand/dataType=] must be the <dfn lt="same as">same type as</dfn> the [=MLOperand/dataType=] of another input operand, or <dfn lt="any data type">any</dfn> to allow any {{MLOperandDataType}}.
12801280

1281-
If an operation requires input operands with a particular [=MLOperand/rank=], the <dfn>allowed ranks</dfn> for each of the operation's input operands, including both positional arguments and options, are given as an explicit rank (e.g. 1), or <dfn lt="any rank">N</dfn> to allow any dimensionality.
1281+
If an operation requires input operands with a particular [=MLOperand/rank=], the <dfn>allowed ranks</dfn> for each of the operation's input operands, including both positional arguments and options, are given as an explicit rank (e.g. 1), or <dfn lt="any rank">N</dfn> to allow any dimensionality. More specific constraints are common, such as when an input operand's shape must be [=/unidirectionally broadcastable=] to or [=/bidirectionally broadcastable=] with another input operand; in these cases, the [=/allowed ranks=] are listed as a range, with specific validation given as steps in the operation.
12821282

12831283
{{MLOperatorOptions}} has the following members:
12841284
<dl dfn-type=dict-member dfn-for=MLOperatorOptions>
@@ -3622,7 +3622,7 @@ partial dictionary MLOpSupportLimits {
36223622
<tr>
36233623
<td>{{MLGemmOptions/c}}</td>
36243624
<td>[=/same as=] {{a}}</td>
3625-
<td>[=/any rank|N=]</td>
3625+
<td>0 to 2</td>
36263626
</tr>
36273627
</table>
36283628

@@ -4702,12 +4702,12 @@ partial dictionary MLOpSupportLimits {
47024702
<tr>
47034703
<td>{{MLLayerNormalizationOptions/scale}}</td>
47044704
<td>[=/same as=] {{input}}</td>
4705-
<td>[=/any rank|N=]</td>
4705+
<td>0 to {{input}}'s [=MLOperand/rank=]</td>
47064706
</tr>
47074707
<tr>
47084708
<td>{{MLLayerNormalizationOptions/bias}}</td>
47094709
<td>[=/same as=] {{input}}</td>
4710-
<td>[=/any rank|N=]</td>
4710+
<td>0 to {{input}}'s [=MLOperand/rank=]</td>
47114711
</tr>
47124712
</table>
47134713

@@ -6198,7 +6198,7 @@ partial dictionary MLOpSupportLimits {
61986198
<tr>
61996199
<td>{{slope}}</td>
62006200
<td>[=/same as=] {{input}}</td>
6201-
<td>[=/any rank|N=]</td>
6201+
<td>0 to {{input}}'s [=MLOperand/rank=]</td>
62026202
</tr>
62036203
</table>
62046204

0 commit comments

Comments
 (0)