Skip to content

Commit 24a8097

Browse files
authored
Merge pull request #839 from inexorabletash/type-fixes
Editorial: Fix some option links and one typo
2 parents 4771d50 + 2aece7d commit 24a8097

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -3010,7 +3010,7 @@ partial dictionary MLOpSupportLimits {
30103010
1. Otherwise, if |options|.{{MLConvTranspose2dOptions/padding}}'s [=list/size=] is not 4, then [=exception/throw=] a {{TypeError}}.
30113011
1. If |options|.{{MLConvTranspose2dOptions/strides}} does not [=map/exist=], then set it to the [=/list=] « 1, 1 ».
30123012
1. Otherwise, if |options|.{{MLConvTranspose2dOptions/strides}}'s [=list/size=] is not 2, then [=exception/throw=] a {{TypeError}}.
3013-
1. If any [=list/item=] in |options|.{{MLConv2dOptions/strides}} is equal to 0, then [=exception/throw=] a {{TypeError}}.
3013+
1. If any [=list/item=] in |options|.{{MLConvTranspose2dOptions/strides}} is equal to 0, then [=exception/throw=] a {{TypeError}}.
30143014
1. If |options|.{{MLConvTranspose2dOptions/dilations}} does not [=map/exist=], then set it to the [=/list=] « 1, 1 ».
30153015
1. Otherwise, if |options|.{{MLConvTranspose2dOptions/dilations}}'s [=list/size=] is not 2, then [=exception/throw=] a {{TypeError}}.
30163016
1. If any [=list/item=] in |options|.{{MLConvTranspose2dOptions/dilations}} is equal to 0, then [=exception/throw=] a {{TypeError}}.
@@ -3069,7 +3069,7 @@ partial dictionary MLOpSupportLimits {
30693069
1. Let |operator| be an [=operator=] for the "convTranspose2d" operation, given |options| and |filter|.
30703070
1. Set |output|.{{MLOperand/[[operator]]}} to |operator|.
30713071
1. Set |operator|'s [=operator/inputs=] to |input| and |filter|.
3072-
1. If |options|.{{MLConv2dOptions/bias}} [=map/exists=], then add it to |operator|'s [=operator/inputs=].
3072+
1. If |options|.{{MLConvTranspose2dOptions/bias}} [=map/exists=], then add it to |operator|'s [=operator/inputs=].
30733073
1. Set |operator|'s [=operator/output=] to |output|.
30743074
1. Return |output|.
30753075
</details>
@@ -7711,7 +7711,7 @@ partial dictionary MLOpSupportLimits {
77117711
1. If [=this=] [=MLGraphBuilder/can not build=], then [=exception/throw=] an "{{InvalidStateError}}" {{DOMException}}.
77127712
1. If [=MLGraphBuilder/validating operand=] with [=this=] and any of |input| and |slope| returns false, then [=exception/throw=] a {{TypeError}}.
77137713
1. If the [=MLOperand/dataType=] of any of |input| or |slope| is not one of its [=/allowed data types=] (according to [this table](#constraints-prelu)), then [=exception/throw=] a {{TypeError}}.
7714-
1. Let |outputShape| be to the result of [=bidirectionally broadcasting=] |slope|'s [=MLOperand/shape=] and |input|'s [=MLOperand/shape=].
7714+
1. Let |outputShape| be the result of [=bidirectionally broadcasting=] |slope|'s [=MLOperand/shape=] and |input|'s [=MLOperand/shape=].
77157715
1. If that returns failure, then [=exception/throw=] a {{TypeError}}.
77167716
1. Let |descriptor| be the result of [=creating an MLOperandDescriptor=] given |input|'s [=MLOperand/dataType=] and |outputShape|.
77177717
1. *Make graph connections:*
@@ -8513,7 +8513,7 @@ partial dictionary MLOpSupportLimits {
85138513
1. If |indices|'s [=MLOperand/dataType=] is not one of its [=/allowed data types=] (according to [this table](#constraints-scatterelements)), then [=exception/throw=] a {{TypeError}}.
85148514
1. If |updates|'s [=MLOperand/dataType=] is not equal to |input|'s [=MLOperand/dataType=], then [=exception/throw=] a {{TypeError}}.
85158515
1. If the [=MLOperand/rank=] of any of |input|, |indices|, or |updates| is not its [=/allowed rank=], then [=exception/throw=] a {{TypeError}}.
8516-
1. Let |axis| be |options|.{{MLGatherOptions/axis}}.
8516+
1. Let |axis| be |options|.{{MLScatterOptions/axis}}.
85178517
1. If |axis| is greater than or equal to |input|'s [=MLOperand/rank=], then [=exception/throw=] a {{TypeError}}.
85188518
1. Let |indicesShapeExpected| be a copy of |input|'s [=MLOperand/shape=].
85198519
1. Set |indicesShapeExpected|[|axis|] to |indices|'s [=MLOperand/shape=][|axis|].

0 commit comments

Comments
 (0)