Skip to content

Commit 89baa1b

Browse files
committed
Merge branch 'opsetWave3' of https://github.com/fdwr/webnn into opsetWave3
2 parents 5aa46e8 + 9fcd0db commit 89baa1b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: index.bs

+11-11
Original file line numberDiff line numberDiff line change
@@ -2965,11 +2965,11 @@ partial dictionary MLOpSupportLimits {
29652965
<div dfn-for="MLGraphBuilder/cumulativeSum(input, axis, options)" dfn-type=argument>
29662966
**Arguments:**
29672967
- <dfn>input</dfn>: an {{MLOperand}}. The input tensor.
2968-
- <dfn>axis</dfn>: an {{unsigned long}} scalar. The axis the summation will be performed on. Its value must be in the range [0, N-1] where N is *input*'s [=MLOperand/rank=].
2968+
- <dfn>axis</dfn>: an {{unsigned long}} scalar. The axis the summation will be performed on. Its value must be in the range [0, N-1] where N is {{MLGraphBuilder/cumulativeSum(input, axis, options)/input}}'s [=MLOperand/rank=].
29692969
- <dfn>options</dfn>: an {{MLCumulativeSumOptions}}. Specifies the optional parameters of the operation.
29702970

29712971
**Returns:**
2972-
- an {{MLOperand}}. The output tensor of the same shape as *input*.
2972+
- an {{MLOperand}}. The output tensor of the same shape as {{MLGraphBuilder/cumulativeSum(input, axis, options)/input}}.
29732973
</div>
29742974

29752975
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/cumulativeSum()}}:
@@ -3668,7 +3668,7 @@ partial dictionary MLOpSupportLimits {
36683668

36693669

36703670
### dequantizeLinear ### {#api-mlgraphbuilder-dequantizelinear}
3671-
Dequantizes an integer tensor to floating point tensor using the scale and zero-point bias, where `output = (input - zeroPoint) * scale`. The *scale* and *zeroPoint* tensors can be smaller than the *input* tensor as they are [=blockwise broadcastable=].
3671+
Dequantizes an integer tensor to floating point tensor using the scale and zero-point bias, where `output = (input - zeroPoint) * scale`. The {{MLGraphBuilder/dequantizeLinear(input, scale, zeroPoint, options)/scale}} and {MLGraphBuilder/dequantizeLinear(input, scale, zeroPoint, options)/zeroPoint}} tensors can be smaller than the {MLGraphBuilder/dequantizeLinear(input, scale, zeroPoint, options)/input}} tensor as they are [=blockwise broadcastable=].
36723672

36733673
<script type=idl>
36743674
partial interface MLGraphBuilder {
@@ -4315,7 +4315,7 @@ partial dictionary MLOpSupportLimits {
43154315
- <dfn>indices</dfn>: an {{MLOperand}}. The indices N-D tensor of the input values to gather. The values must be of type {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"uint32"}}, or {{MLOperandDataType/"int64"}}, and must be in the range -N (inclusive) to N (exclusive) where N is the size of the input dimension indexed by *options.axis*, and a negative index means indexing from the end of the dimension.
43164316
- <dfn>options</dfn>: an optional {{MLGatherOptions}}. The optional parameters of the operation.
43174317

4318-
**Returns:** an {{MLOperand}}. The output N-D tensor of [=MLOperand/rank=] equal to the [=MLOperand/rank=] of *input*.
4318+
**Returns:** an {{MLOperand}}. The output N-D tensor of [=MLOperand/rank=] equal to {{MLGraphBuilder/gatherElements(input, indices, options)/input}}'s [=MLOperand/rank=].
43194319
</div>
43204320

43214321
<table id=constraints-gatherelements class='data' link-for="MLGraphBuilder/gatherElements(input, indices, options)">
@@ -4479,7 +4479,7 @@ partial dictionary MLOpSupportLimits {
44794479
- <dfn>indices</dfn>: an {{MLOperand}}. The indices array contains entire coordinates into the input tensor, with the rightmost dimension holding the number of dimensions per coordinate. So an indices tensor of shape [10,1] holds 10 single-axis indices, and a shape of [4,3] holds 4 indices of 3D coordinates. The values must be of type {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"uint32"}}, or {{MLOperandDataType/"int64"}}, and each must be in the range -N (inclusive) to N (exclusive) where N is the size of the corresponding input dimension, and a negative index means indexing from the end of the corresponding dimension.
44804480
- <dfn>options</dfn>: an optional {{MLOperatorOptions}}. The optional parameters of the operation.
44814481

4482-
**Returns:** an {{MLOperand}}. The output N-D tensor of [=MLOperand/rank=] equal to the *input*'s [=MLOperand/rank=] + *indices*'s [=MLOperand/rank=] - *indices*'s [=MLOperand/shape=][-1] - 1.
4482+
**Returns:** an {{MLOperand}}. The output N-D tensor of [=MLOperand/rank=] equal to the {{MLGraphBuilder/gatherND(input, indices, options)/input}}'s [=MLOperand/rank=] + {{MLGraphBuilder/gatherND(input, indices, options)/indices}}'s [=MLOperand/rank=] - {{MLGraphBuilder/gatherND(input, indices, options)/indices}}'s [=MLOperand/shape=][-1] - 1.
44834483
</div>
44844484

44854485
<table id=constraints-gathernd class='data' link-for="MLGraphBuilder/gatherND(input, indices, options)">
@@ -4504,7 +4504,7 @@ partial dictionary MLOpSupportLimits {
45044504
<tr>
45054505
<td>*output*</td>
45064506
<td>[=/same type as|same as=] {{input}}</td>
4507-
<td>*input*'s [=MLOperand/rank=] + *indices*'s [=MLOperand/rank=] - *indices*'s [=MLOperand/shape=][-1] - 1</td>
4507+
<td>{{input}}'s [=MLOperand/rank=] + {{indices}}'s [=MLOperand/rank=] - {{indices}}'s [=MLOperand/shape=][-1] - 1</td>
45084508
</tr>
45094509
</table>
45104510

@@ -4527,7 +4527,7 @@ partial dictionary MLOpSupportLimits {
45274527
1. If |indices|'s [=MLOperand/dataType=]'s is not one of the [=/allowed data types=] (according to [this table](#constraints-gathernd)), then [=exception/throw=] a {{TypeError}}.
45284528
1. Let |inputShape| be |input|'s [=MLOperand/shape=] and |inputRank| be |input|'s [=MLOperand/rank=].
45294529
1. Let |indicesShape| be |indices|'s [=MLOperand/shape=] and |indicesRank| be |indices|'s [=MLOperand/rank=].
4530-
1. If |inputRank| or |indicesRank| is less than 1, then [=exception/throw=] a {{TypeError}}.
4530+
1. If the [=MLOperand/rank=] of any of |input| or |indices| is not its [=/allowed rank=], then [=exception/throw=] a {{TypeError}}.
45314531
1. Let |indexableSize| be |indicesRank| - 1.
45324532
1. Let |coordinateSize| be |indicesShape|[|indexableSize|].
45334533
1. If |coordinateSize| is greater than |inputRank|, then [=exception/throw=] a {{TypeError}}.
@@ -8193,7 +8193,7 @@ partial dictionary MLOpSupportLimits {
81938193
- <dfn>options</dfn>: an {{MLOperatorOptions}}. Specifies the optional parameters of the operation.
81948194

81958195
**Returns:**
8196-
- an {{MLOperand}}. The output tensor of the same shape as *input*.
8196+
- an {{MLOperand}}. The output tensor of the same shape as {{MLGraphBuilder/reverse(input, options)/input}}.
81978197
</div>
81988198

81998199
<table id=constraints-reverse class='data' link-for="MLGraphBuilder/reverse(input, options)">
@@ -8283,7 +8283,7 @@ partial dictionary MLOpSupportLimits {
82838283
- <dfn>updates</dfn>: an {{MLOperand}}. New values to replace atop the input, with the same shape as the indices.
82848284
- <dfn>options</dfn>: an optional {{MLScatterOptions}}. The optional parameters of the operation.
82858285

8286-
**Returns:** an {{MLOperand}}. The output N-D tensor of [=MLOperand/rank=] equal to *input*'s [=MLOperand/rank=].
8286+
**Returns:** an {{MLOperand}}. The output N-D tensor of [=MLOperand/rank=] equal to {{MLGraphBuilder/scatterElements(input, indices, updates, options)/input}}'s [=MLOperand/rank=].
82878287
</div>
82888288

82898289
<table id=constraints-scatterelements class='data' link-for="MLGraphBuilder/scatterElements(input, indices, updates, options)">
@@ -8499,7 +8499,7 @@ partial dictionary MLOpSupportLimits {
84998499
- <dfn>updates</dfn>: an {{MLOperand}}. New values to replace atop the input.
85008500
- <dfn>options</dfn>: an optional {{MLScatterOptions}}. The optional parameters of the operation.
85018501

8502-
**Returns:** an {{MLOperand}}. The output N-D tensor of [=MLOperand/rank=] equal to the [=MLOperand/rank=] of *input*'s [=MLOperand/rank=] + *indices*'s [=MLOperand/rank=] - *indices*'s [=MLOperand/shape=][-1] - 1.
8502+
**Returns:** an {{MLOperand}}. The output N-D tensor of [=MLOperand/rank=] equal to the [=MLOperand/rank=] of {{MLGraphBuilder/scatterND(input, indices, updates, options)/input}}'s [=MLOperand/rank=] + {{MLGraphBuilder/scatterND(input, indices, updates, options)/indices}}'s [=MLOperand/rank=] - {{MLGraphBuilder/scatterND(input, indices, updates, options)/indices}}'s [=MLOperand/shape=][-1] - 1.
85038503
</div>
85048504

85058505
<table id=constraints-scatternd class='data' link-for="MLGraphBuilder/scatterND(input, indices, updates, options)">
@@ -8524,7 +8524,7 @@ partial dictionary MLOpSupportLimits {
85248524
<tr>
85258525
<td>{{updates}}</td>
85268526
<td>[=/same type as|same as=] {{input}}</td>
8527-
<td>*input*'s [=MLOperand/rank=] + *indices*'s [=MLOperand/rank=] - *indices*'s [=MLOperand/shape=][-1] - 1</td>
8527+
<td>{{input}}'s [=MLOperand/rank=] + {{indices}}'s [=MLOperand/rank=] - {{indices}}'s [=MLOperand/shape=][-1] - 1</td>
85288528
</tr>
85298529
<tr>
85308530
<td>*output*</td>

0 commit comments

Comments
 (0)