Skip to content

Commit 6818a1c

Browse files
author
Zoltan Kis
committed
Fix #459: correct the concat() steps
Signed-off-by: Zoltan Kis <zoltan.kis@intel.com>
1 parent 3f9f3b3 commit 6818a1c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

index.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,16 +1990,16 @@ partial interface MLGraphBuilder {
19901990
1. [=Assert=]: the {{MLOperandDescriptor/type}} of each operand in |inputs| is the same.
19911991
1. If any of the following steps fail, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
19921992
1. Let |desc| be |inputs|[0].{{MLOperand/[[descriptor]]}}.
1993-
1. If |axis| is greater than or equal to the [=rank=] of |desc|, fail.
1993+
1. If |axis| is greater than or equal to the [=rank=] of |desc|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
19941994
1. Let |desc|.{{MLOperandDescriptor/dimensions}}[|axis|] be 0.
19951995
1. [=map/For each=] |index| in [=the range=] 0 to the [=rank=] of |inputs|, exclusive:
1996-
1. If <a>validating MLOperand</a> given |inputs|[|index|] and [=this=] returns false, then fail.
1996+
1. If <a>validating MLOperand</a> given |inputs|[|index|] and [=this=] returns false, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
19971997
1. [=map/For each=] |dim| in [=the range=] 0 to the [=rank=] of |inputs|[|index|].{{MLOperandDescriptor/dimensions}}, exclusive:
19981998
<div class="note">
19991999
If the shape of each corresponding dimension and type of the operands, except for those of the dimension given by |axis|, is not the same, fail.
20002000
</div>
2001-
1. If |dim| is not equal to |axis| and if |inputs|[|index|].{{MLOperandDescriptor/dimensions}}[|dim|] is not equal to |inputs|[0].{{MLOperandDescriptor/dimensions}}[|dim|], fail.
2002-
1. If |inputs|[|dim|].{{MLOperandDescriptor/type}} is not equal to |inputs|[0].{{MLOperandDescriptor/type}}.
2001+
1. If |inputs|[|index|].{{MLOperandDescriptor/type}} is not equal to |inputs|[0].{{MLOperandDescriptor/type}}.
2002+
1. If |dim| is not equal to |axis| and if |inputs|[|index|].{{MLOperandDescriptor/dimensions}}[|dim|] is not equal to |inputs|[0].{{MLOperandDescriptor/dimensions}}[|dim|], then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
20032003
1. If |dim| is equal to |axis|, add to |desc|.{{MLOperandDescriptor/dimensions}}[|axis|] the value of |inputs|[|index|].{{MLOperandDescriptor/dimensions}}[|dim|].
20042004
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
20052005
1. Let |output| be the result of <a>creating an MLOperand</a> given [=this=] and |desc|.

0 commit comments

Comments
 (0)