diff --git a/index.bs b/index.bs index a798dd30..44ffb25f 100644 --- a/index.bs +++ b/index.bs @@ -2150,6 +2150,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`. @@ -2316,6 +2318,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"`.