Skip to content

Commit b421b69

Browse files
Wording change: Tidy up a more arrays within algorithms to be lists (webmachinelearning#521)
Co-authored-by: Ningxin Hu <[email protected]>
1 parent 2e1ebe3 commit b421b69

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.bs

+7-7
Original file line numberDiff line numberDiff line change
@@ -3368,7 +3368,7 @@ partial interface MLGraphBuilder {
33683368
1. If its [=rank=] is not equal to 3 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
33693369
1. If |options|.{{MLGruOptions/activations}} [=map/exists=] and its [=list/size=] is not 2, then [=exception/throw=] a {{TypeError}}.
33703370
1. Let |desc| be a new {{MLOperandDescriptor}}.
3371-
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to [ |input|.{{MLOperandDescriptor/dimensions}}[0], |hiddenSize| ].
3371+
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to the [=/list=] « |input|.{{MLOperandDescriptor/dimensions}}[0], |hiddenSize| ».
33723372
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
33733373
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
33743374
1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
@@ -4195,15 +4195,15 @@ partial interface MLGraphBuilder {
41954195
1. If its [=list/size=] is not 3, then [=exception/throw=] a {{TypeError}}.
41964196
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
41974197
1. Let |desc| be a new {{MLOperandDescriptor}}.
4198-
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to [ |numDirections|, |batchSize|, |hiddenSize| ].
4198+
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to the [=/list=] « |numDirections|, |batchSize|, |hiddenSize| ».
41994199
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
42004200
1. Let |output0| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
42014201
1. Let |output1| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
4202-
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to [ |steps|, |numDirections|, |batchSize|, |hiddenSize| ].
4202+
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to the [=/list=] « |steps|, |numDirections|, |batchSize|, |hiddenSize| ».
42034203
1. If |options|.{{MLLstmOptions/returnSequence}} is set to true:
42044204
1. Let |output2| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
4205-
1. Let |output| be the array [ |output0|, |output1|, |output2| ].
4206-
1. Otherwise, Let |output| be the array [ |output0|, |output1| ].
4205+
1. Let |output| be the [=/list=] « |output0|, |output1|, |output2| ».
4206+
1. Otherwise, let |output| be the [=/list=] « |output0|, |output1| ».
42074207
1. Make a request to the underlying platform to:
42084208
1. Let |opImpl| be an [=implementation-defined=] platform operator for the LSTM operation, given |weight|, |recurrentWeight|, |steps|, |hiddenSize| and |options|.
42094209
1. Set |output0|.{{MLOperand/[[operator]]}}, |output1|.{{MLOperand/[[operator]]}} and |output2|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -4375,12 +4375,12 @@ partial interface MLGraphBuilder {
43754375
1. If |options|.{{MLLstmCellOptions/activations}} [=map/exists=]:
43764376
1. If its [=list/size=] is not 3, then [=exception/throw=] a {{TypeError}}.
43774377
1. Let |desc| be a new {{MLOperandDescriptor}}.
4378-
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to [ |batchSize|, |hiddenSize| ].
4378+
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to the [=/list=] « |batchSize|, |hiddenSize| ».
43794379
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
43804380
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
43814381
1. Let |output0| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
43824382
1. Let |output1| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
4383-
1. Let |output| be the array [ |output0|, |output1| ].
4383+
1. Let |output| be the [=/list=] « |output0|, |output1| ».
43844384
1. Make a request to the underlying platform to:
43854385
1. Let |opImpl| be an [=implementation-defined=] platform operator for the LSTM cell operation, given |weight|, |recurrentWeight|, |hiddenState|, |cellState|, |hiddenSize| and |options|.
43864386
1. Set |output0|.{{MLOperand/[[operator]]}} and |output1|.{{MLOperand/[[operator]]}} to |opImpl|.

0 commit comments

Comments
 (0)