diff --git a/index.bs b/index.bs index faf6b015..c39f6831 100644 --- a/index.bs +++ b/index.bs @@ -2064,6 +2064,8 @@ partial interface MLGraphBuilder { 1. If |options| is `undefined`, let |options| be an empty [=object=]. 1. If |options|.{{MLConv2dOptions/padding}} is `undefined`, set it to `[0, 0, 0, 0]`. 1. If |options|.{{MLConv2dOptions/strides}} is `undefined`, set it to `[1, 1]`. + 1. Else if |options|.{{MLConv2dOptions/strides}}.size() is not `2`, then throw a "{{TypeError}}" {{DOMException}} and stop. + 1. If any element in |options|.{{MLConv2dOptions/strides}} is equal to 0, then throw a "{{TypeError}}" {{DOMException}} and stop. 1. If |options|.{{MLConv2dOptions/dilations}} is `undefined`, set it to `[1, 1]`. 1. If |options|.{{MLConv2dOptions/autoPad}} is `undefined`, set it to `"explicit"`. 1. If |options|.{{MLConv2dOptions/groups}} is `undefined`, set it to `1`. @@ -2230,6 +2232,8 @@ partial interface MLGraphBuilder { 1. If |options| is `undefined`, let |options| be an empty [=object=]. 1. If |options|.{{MLConvTranspose2dOptions/padding}} is `undefined`, set it to `[0, 0, 0, 0]`. 1. If |options|.{{MLConvTranspose2dOptions/strides}} is `undefined`, set it to `[1, 1]`. + 1. Else if |options|.{{MLConv2dOptions/strides}}.size() is not `2`, then throw a "{{TypeError}}" {{DOMException}} and stop. + 1. If any element in |options|.{{MLConv2dOptions/strides}} is equal to 0, then throw a "{{TypeError}}" {{DOMException}} and stop. 1. If |options|.{{MLConvTranspose2dOptions/dilations}} is `undefined`, set it to `[1, 1]`. 1. If |options|.{{MLConvTranspose2dOptions/outputPadding}} is `undefined`, set it to `[0, 0]`. 1. If |options|.{{MLConvTranspose2dOptions/autoPad}} is `undefined`, set it to `"explicit"`.