You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. If its [=list/size=] is not 3, then [=exception/throw=] a {{TypeError}}.
4196
4196
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
4197
4197
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| ».
4199
4199
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
4200
4200
1. Let |output0| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
4201
4201
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| ».
4203
4203
1. If |options|.{{MLLstmOptions/returnSequence}} is set to true:
4204
4204
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| ».
4207
4207
1. Make a request to the underlying platform to:
4208
4208
1. Let |opImpl| be an [=implementation-defined=] platform operator for the LSTM operation, given |weight|, |recurrentWeight|, |steps|, |hiddenSize| and |options|.
4209
4209
1. Set |output0|.{{MLOperand/[[operator]]}}, |output1|.{{MLOperand/[[operator]]}} and |output2|.{{MLOperand/[[operator]]}} to |opImpl|.
1. If |options|.{{MLLstmCellOptions/activations}}[=map/exists=]:
4376
4376
1. If its [=list/size=] is not 3, then [=exception/throw=] a {{TypeError}}.
4377
4377
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| ».
4379
4379
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
4380
4380
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
4381
4381
1. Let |output0| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
4382
4382
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| ».
4384
4384
1. Make a request to the underlying platform to:
4385
4385
1. Let |opImpl| be an [=implementation-defined=] platform operator for the LSTM cell operation, given |weight|, |recurrentWeight|, |hiddenState|, |cellState|, |hiddenSize| and |options|.
4386
4386
1. Set |output0|.{{MLOperand/[[operator]]}} and |output1|.{{MLOperand/[[operator]]}} to |opImpl|.
0 commit comments