Skip to content

Commit

Permalink
Allow allowed ranks to be a range
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Nov 12, 2024
1 parent f61292d commit 4bf14f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ Since the {{MLOperand/[[builder]]}} object is bound by the {{MLGraphBuilder/cons

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}}.

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.
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.

{{MLOperatorOptions}} has the following members:
<dl dfn-type=dict-member dfn-for=MLOperatorOptions>
Expand Down Expand Up @@ -3622,7 +3622,7 @@ partial dictionary MLOpSupportLimits {
<tr>
<td>{{MLGemmOptions/c}}</td>
<td>[=/same as=] {{a}}</td>
<td>[=/any rank|N=]</td>
<td>0 to 2</td>
</tr>
</table>

Expand Down Expand Up @@ -4702,12 +4702,12 @@ partial dictionary MLOpSupportLimits {
<tr>
<td>{{MLLayerNormalizationOptions/scale}}</td>
<td>[=/same as=] {{input}}</td>
<td>[=/any rank|N=]</td>
<td>0 to {{input}}'s [=MLOperand/rank=]</td>
</tr>
<tr>
<td>{{MLLayerNormalizationOptions/bias}}</td>
<td>[=/same as=] {{input}}</td>
<td>[=/any rank|N=]</td>
<td>0 to {{input}}'s [=MLOperand/rank=]</td>
</tr>
</table>

Expand Down Expand Up @@ -6198,7 +6198,7 @@ partial dictionary MLOpSupportLimits {
<tr>
<td>{{slope}}</td>
<td>[=/same as=] {{input}}</td>
<td>[=/any rank|N=]</td>
<td>0 to {{input}}'s [=MLOperand/rank=]</td>
</tr>
</table>

Expand Down

0 comments on commit 4bf14f6

Please sign in to comment.