diff --git a/index.bs b/index.bs
index 1c05b4fa..57a0fe42 100644
--- a/index.bs
+++ b/index.bs
@@ -814,7 +814,7 @@ Its default allowlist is 'self'
.
1. Let |promise| be [=a new promise=].
1. Return |promise| and run the following steps [=in parallel=].
1. Let |context| be the result of [=creating a context=] given |options|.
- 1. If validating MLContext given |context| returns false, [=reject=] |promise| with a "{{NotSupportedError}}" {{DOMException}}.
+ 1. If [=validating MLContext=] given |context| returns false, [=reject=] |promise| with a "{{NotSupportedError}}" {{DOMException}}.
1. [=Resolve=] |promise| with |context|.
@@ -828,7 +828,7 @@ Its default allowlist is 'self'
.
1. Let |promise| be [=a new promise=].
1. Return |promise| and run the following steps [=in parallel=].
1. Let |context| be the result of [=creating a context=] given |gpuDevice|.
- 1. If validating MLContext given |context| returns false, [=reject=] |promise| with a "{{NotSupportedError}}" {{DOMException}}.
+ 1. If [=validating MLContext=] given |context| returns false, [=reject=] |promise| with a "{{NotSupportedError}}" {{DOMException}}.
1. [=Resolve=] |promise| with |context|.
@@ -842,7 +842,7 @@ Its default allowlist is 'self'
.
1. [=Assert=]: the type of |input| is {{MLOperand}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |operand| be the result of
creating an MLOperand given [=this=], |input| and |type|.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |operand| be the result of [=creating an MLOperand=] given [=this=], |input| and |type|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Create an [=implementation-defined=] platform operator |castImpl| for this method, given |type|.
1. Set |output|.{{MLOperand/[[operator]]}} to |castImpl|.
@@ -1797,7 +1797,7 @@ partial interface MLGraphBuilder {
1. [=Assert=]: the type of |input| is {{MLOperand}}.
1. If [=checking clamp options=] given |options| returns false, then [=exception/throw=] a {{TypeError}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Create an [=implementation-defined=] platform operator |clampImpl| for this method, given |options|.{{MLClampOptions/minValue}} and |options|.{{MLClampOptions/maxValue}}.
1. Set |output|.{{MLOperand/[[operator]]}} to |clampImpl|.
@@ -1870,7 +1870,7 @@ partial interface MLGraphBuilder {
1. Let |desc|.{{MLOperandDescriptor/dimensions}}[|axis|] be 0.
1. [=map/For each=] |index| in [=the range=] 0 to the [=rank=] of |inputs|, exclusive:
1. Let |input| be |inputs|[|index|].
- 1. If
validating MLOperand given |input| and [=this=] returns false, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
+ 1. If [=validating MLOperand=] given |input| and [=this=] returns false, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}} is not equal to |inputs|[0].{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. [=map/For each=] |dim| in [=the range=] 0 to the [=rank=] of |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}, exclusive:
@@ -1879,7 +1879,7 @@ partial interface MLGraphBuilder {
1. If |dim| is not equal to |axis| and if |input|.{{MLOperandDescriptor/dimensions}}[|dim|] is not equal to |inputs|[0].{{MLOperandDescriptor/dimensions}}[|dim|], then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |dim| is equal to |axis|, add to |desc|.{{MLOperandDescriptor/dimensions}}[|axis|] the value of |input|.{{MLOperandDescriptor/dimensions}}[|dim|].
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Make a request to the underlying platform to:
1. Create an [=implementation-defined=] platform operator |concatImpl| for this method, given |inputs| and |axis|.
1. Set |output|.{{MLOperand/[[operator]]}} to |concatImpl|.
@@ -1915,9 +1915,9 @@ Create a constant {{MLOperand}} of the specified data type and shape that contai
1. [=Assert=]: the type of |descriptor| is {{MLOperandDescriptor}}.
1. If the [=byte length=] of |descriptor| is not supported by the underlying platform, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If the [=checking dimensions=] given |descriptor|.{{MLOperandDescriptor/dataType}} and |descriptor|.{{MLOperandDescriptor/dimensions}} returns false, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
- 1. If
validating buffer with descriptor given |bufferView| and |descriptor| returns false, then [=exception/throw=] a {{TypeError}}.
+ 1. If [=validating buffer with descriptor=] given |bufferView| and |descriptor| returns false, then [=exception/throw=] a {{TypeError}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |operand| be the result of
creating an MLOperand given [=this=] and |descriptor|.
+ 1. Let |operand| be the result of [=creating an MLOperand=] given [=this=] and |descriptor|.
1. Let |bytes| be the result of [=getting a copy of the bytes held by the buffer source=] given |bufferView|.
1. Make a request to the underlying platform to:
1. Create an [=implementation-defined=] platform operand |constantImpl| to represent a constant, given |descriptor|.
@@ -1956,7 +1956,7 @@ Data truncation will occur when the specified value exceeds the range of the spe
In the case of a scalar constant, |descriptor|.{{MLOperandDescriptor/dimensions}} is ignored.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |operand| be the result of
creating an MLOperand given [=this=] and |descriptor|.
+ 1. Let |operand| be the result of [=creating an MLOperand=] given [=this=] and |descriptor|.
1. Make a request to the underlying platform to:
1. Create an [=implementation-defined=] platform operand |constantImpl| to represent a constant, given |descriptor|.
1. Set |operand|.{{MLOperand/[[operand]]}} to |constantImpl|.
@@ -1994,7 +1994,7 @@ Data truncation will occur when the values in the range exceed the range of the
1. Let |size| be *max(0, ceil((end - start)/step))*.
1. Set |descriptor|.{{MLOperandDescriptor/dimensions}} to « |size| ».
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |operand| be the result of
creating an MLOperand given [=this=], |start|, |end|, |step|, and |type|.
+ 1. Let |operand| be the result of [=creating an MLOperand=] given [=this=], |start|, |end|, |step|, and |type|.
1. Make a request to the underlying platform to:
1. Create an [=implementation-defined=] platform memory buffer the size of |size| multiplied by sizeof(|descriptor|.{{MLOperandDescriptor/dataType}}).
2. Store the beginning address to that memory buffer as a pointer |buffer| of the corresponding data type.
@@ -2163,7 +2163,7 @@ partial interface MLGraphBuilder {
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to |outputShape|.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Make a request to the underlying platform to:
1. Create an [=implementation-defined=] platform operator |conv2dImpl| for this method, given |options| and |filter|.
1. If |options|.{{MLConv2dOptions/activation}} [=map/exists=],register it as activation to |conv2dImpl|.
@@ -2342,7 +2342,7 @@ partial interface MLGraphBuilder {
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to |outputShape|.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Make a request to the underlying platform to:
1. Create an [=implementation-defined=] platform operator |convTranspose2dImpl| for this method, given |options| and |filter|.
1. If |options|.{{MLConvTranspose2dOptions/activation}} [=map/exists=],register it as activation to |convTranspose2dImpl|.
@@ -2407,7 +2407,7 @@ partial interface MLGraphBuilder {
1. Let |descriptor|.{{MLOperandDescriptor/dimensions}} be the result of running the [=MLGraphBuilder/broadcast-shapes=] steps given |a|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}} and |b|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}.
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |descriptor|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |descriptor|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the binary operation |op|, given |a| and |b|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -2544,7 +2544,7 @@ Although operations *greaterOrEqual* and *lesserOrEqual* can each be implemented
1. Let |descriptor|.{{MLOperandDescriptor/dimensions}} be the result of running the [=MLGraphBuilder/broadcast-shapes=] steps given |a|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}} and |b|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}.
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |descriptor|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |descriptor|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the binary operation |op|, given |a| and |b|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -2659,7 +2659,7 @@ partial interface MLGraphBuilder {
1. [=Assert=]: |op| is one of "abs", "ceil", "cos", "erf", "exp", "floor", "identity", "log", "neg", "reciprocal", "sin", "sqrt", "tan".
1. [=Assert=]: the type of |input| is {{MLOperand}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the unary operation |op|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -2820,7 +2820,7 @@ partial interface MLGraphBuilder {
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the ELU operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -2887,7 +2887,7 @@ partial interface MLGraphBuilder {
1. If |size| is not equal to 1 and not equal to |newShape|[index], then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |size| is equal to 1, then let |outputDesc|.{{MLOperandDescriptor/dimensions}}[|index|] be |newShape|[|index|].
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |outputDesc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |outputDesc|.
1. Make a request to the underlying platform to:
1. Create an [=implementation-defined=] platform operator |expandImpl| for this method, given |input| and |newShape|.
1. Set |output|.{{MLOperand/[[operator]]}} to |expandImpl|.
@@ -2963,7 +2963,7 @@ partial interface MLGraphBuilder {
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to |shapeOutput|.
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given |desc|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the Gather operation, given |input|, |indices|, and |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -3100,7 +3100,7 @@ partial interface MLGraphBuilder {
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to « |shapeA|[0], |shapeB|[1] ».
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |a|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the GEMM operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -3384,7 +3384,7 @@ partial interface MLGraphBuilder {
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to [ |input|.{{MLOperandDescriptor/dimensions}}[0], |hiddenSize| ].
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for "gruCell", given |weight|, |recurrentWeight|, |hiddenState|, |hiddenSize| and |options| as parameters.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -3561,7 +3561,7 @@ partial interface MLGraphBuilder {
1. [=Assert=]: the type of |input| is {{MLOperand}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the hard sigmoid operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -3641,7 +3641,7 @@ partial interface MLGraphBuilder {
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the hard-swish operation.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -3698,7 +3698,7 @@ Create a named {{MLOperand}} based on a descriptor, that can be used as an input
1. If [=checking dimensions=] given |descriptor|.{{MLOperandDescriptor/dataType}} and |descriptor|.{{MLOperandDescriptor/dimensions}} returns false, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If the [=byte length=] of |descriptor| is not supported by the underlying platform, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |operand| be the result of
creating an MLOperand given [=this=] and |descriptor|.
+ 1. Let |operand| be the result of [=creating an MLOperand=] given [=this=] and |descriptor|.
1. Set |operand|.{{MLOperand/[[name]]}} to |name|.
1. Make a request to the underlying platform to:
1. Create an [=implementation-defined=] platform input operand |operandImpl| given |descriptor|.
@@ -3765,7 +3765,7 @@ The {{MLInstanceNormalizationOptions}} members are:
1. [=Assert=]: the type of |options|.{{MLInstanceNormalizationOptions/bias}} is {{MLOperand}}.
1. If the [=rank=] of |options|.{{MLInstanceNormalizationOptions/bias}} is not equal to 1, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the instance normalization operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -3873,7 +3873,7 @@ The {{MLLayerNormalizationOptions}} members are:
1. If |options|.{{MLLayerNormalizationOptions/scale}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[|index|] is not equal to |size|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLayerNormalizationOptions/bias}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[|index|] is not equal to |size|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the instance normalization operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -3974,7 +3974,7 @@ partial interface MLGraphBuilder {
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the Leaky RELU operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -4066,7 +4066,7 @@ partial interface MLGraphBuilder {
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the linear operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -4225,11 +4225,11 @@ partial interface MLGraphBuilder {
1. Let |desc| be a new {{MLOperandDescriptor}}.
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to [ |numDirections|, |batchSize|, |hiddenSize| ].
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
- 1. Let |output0| be the result of
creating an MLOperand given [=this=] and |desc|.
- 1. Let |output1| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output0| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
+ 1. Let |output1| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to [ |steps|, |numDirections|, |batchSize|, |hiddenSize| ].
1. If |options|.{{MLLstmOptions/returnSequence}} is set to true:
- 1. Let |output2| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output2| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Let |output| be the array [ |output0|, |output1|, |output2| ].
1. Otherwise, Let |output| be the array [ |output0|, |output1| ].
1. Make a request to the underlying platform to:
@@ -4411,8 +4411,8 @@ partial interface MLGraphBuilder {
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to [ |batchSize|, |hiddenSize| ].
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output0| be the result of
creating an MLOperand given [=this=] and |desc|.
- 1. Let |output1| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output0| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
+ 1. Let |output1| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Let |output| be the array [ |output0|, |output1| ].
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the LSTM cell operation, given |weight|, |recurrentWeight|, |hiddenState|, |cellState|, |hiddenSize| and |options|.
@@ -4599,7 +4599,7 @@ partial interface MLGraphBuilder {
1. If that throws an error, re-[=exception/throw=] the error.
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |a|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the matrix multiplication operation.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -4685,7 +4685,7 @@ partial interface MLGraphBuilder {
1. Let |desc| be a copy of |input|.{{MLOperand/[[descriptor]]}}.
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to the result of [=calculating padding output sizes=] given |input|, |beginningPadding| and |endingPadding|.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the padding operation, given |beginningPadding|, |endingPadding| and |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -4879,7 +4879,7 @@ partial interface MLGraphBuilder {
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
1. Make a request to the underlying platform to:
1. Calculate the output dimensions given |input| and |options|. Let |desc|.{{MLOperandDescriptor/dimensions}} be the result of that.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Let |opImpl| be an [=implementation-defined=] platform operator for the |op| pooling operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
1. Create an [=implementation-defined=] platform operand |outputImpl| to represent the output, given |output| and |opImpl|.
@@ -4954,7 +4954,7 @@ partial interface MLGraphBuilder {
1. Let |descriptor|.{{MLOperandDescriptor/dimensions}} be the result of running the [=MLGraphBuilder/broadcast-shapes=] steps given |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}} and |slope|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}.
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |descriptor|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |descriptor|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the PreLU operation, given |slope|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5049,7 +5049,7 @@ partial interface MLGraphBuilder {
1. Set |desc|.{{MLOperandDescriptor/dataType}} to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dataType}}.
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to |outputShape|.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the |op| reduce operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5177,7 +5177,7 @@ partial interface MLGraphBuilder {
1. [=Assert=]: the type of |input| is {{MLOperand}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the ReLU operation.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5302,7 +5302,7 @@ partial interface MLGraphBuilder {
1. Let |desc| be the result of [=resampling output sizes=] given |options|.
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the resample 2D operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5355,7 +5355,7 @@ partial interface MLGraphBuilder {
1. Let |desc| be a copy of |input|.{{MLOperand/[[descriptor]]}}.
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to |newShape|.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |desc|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |desc|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the reshape operation.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5448,7 +5448,7 @@ partial interface MLGraphBuilder {
1. [=Assert=]: the type of |input| is {{MLOperand}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the sigmoid operation.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5504,9 +5504,9 @@ partial interface MLGraphBuilder {
1. [=Assert=]: the type of |input| is {{MLOperand}}.
1. If |sizes|.size is 0, then [=exception/throw=] a {{TypeError}}.
- 1. If the [=list/size=] of |starts| and |sizes| is not equal to the
rank of |input|, then [=exception/throw=] a {{TypeError}}.
+ 1. If the [=list/size=] of |starts| and |sizes| is not equal to the [=rank=] of |input|, then [=exception/throw=] a {{TypeError}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the slice operation, given |starts| and |sizes|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5566,7 +5566,7 @@ partial interface MLGraphBuilder {
1. [=Assert=]: the type of |input| is {{MLOperand}}.
1. If the [=list/size=] of |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}} is not 2, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the softmax operation.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5655,7 +5655,7 @@ partial interface MLGraphBuilder {
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the softplus operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5728,7 +5728,7 @@ partial interface MLGraphBuilder {
1. [=Assert=]: the type of |input| is {{MLOperand}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the softsign operation.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5800,7 +5800,7 @@ partial interface MLGraphBuilder {
1. If |splits| is an {{unsigned long}}, and |input|.{{MLOperandDescriptor/dimensions}}[|options|.{{MLSplitOptions/axis}}] % |splits| is not 0, then [=exception/throw=] a {{TypeError}}.
1. If |splits| is a sequence of {{unsigned long}}, and the sum of its elements is not equal to |input|.{{MLOperandDescriptor/dimensions}}[|options|.{{MLSplitOptions/axis}}], then [=exception/throw=] a {{TypeError}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the split operation, given |splits| and |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5879,7 +5879,7 @@ partial interface MLGraphBuilder {
1. [=Assert=]: the type of |input| is {{MLOperand}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the hyperbolic tangent operation.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -5953,7 +5953,7 @@ partial interface MLGraphBuilder {
1. If the values in |options|.{{MLTransposeOptions/permutation}} are not in [=the range=] 0 and the [=rank=] of |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}} exclusive, then [=exception/throw=] a {{TypeError}}.
1. If the values in |options|.{{MLTransposeOptions/permutation}} contain duplicate value, then [=exception/throw=] a {{TypeError}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the transpose operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -6003,7 +6003,7 @@ partial interface MLGraphBuilder {
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
copying an MLOperand given |input|.
+ 1. Let |output| be the result of [=copying an MLOperand=] given |input|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the triangular operation, given |options|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.
@@ -6102,7 +6102,7 @@ partial interface MLGraphBuilder {
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. If |condition| is not unidirectionally broadcastable to |descriptor|.{{MLOperandDescriptor/dimensions}} according to the [[!numpy-broadcasting-rule]], then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If any of the following sub-steps fail, [=exception/throw=] an "{{OperationError}}" {{DOMException}}.
- 1. Let |output| be the result of
creating an MLOperand given [=this=] and |descriptor|.
+ 1. Let |output| be the result of [=creating an MLOperand=] given [=this=] and |descriptor|.
1. Make a request to the underlying platform to:
1. Let |opImpl| be an [=implementation-defined=] platform operator for the where operation, given |condition|, |input| and |other|.
1. Set |output|.{{MLOperand/[[operator]]}} to |opImpl|.