Skip to content

Commit

Permalink
Bugfix: Drop "re-throw" in MLActivation creation steps
Browse files Browse the repository at this point in the history
The "create an MLActivation" steps don't throw, so there's no
need to re-throw.

Discussed in webmachinelearning#591 (comment)
  • Loading branch information
inexorabletash committed Mar 22, 2024
1 parent 91cb734 commit 874c04a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,6 @@ partial interface MLGraphBuilder {
</summary>
1. If [=checking clamp options=] given |options| returns false, then [=exception/throw=] a {{TypeError}}.
1. Let |op| be the result of [=creating an MLActivation=] given [=this=], "clamp" and |options|.
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down Expand Up @@ -3373,7 +3372,6 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder>hardSigmoid(|options|)</dfn> method steps are:
</summary>
1. Let |op| be the result of [=creating an MLActivation=] given [=this=], "hardSigmoid" and |options|.
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down Expand Up @@ -3445,7 +3443,6 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder id=hardswish-noargs>hardSwish()</dfn> method steps are:
</summary>
1. Let |op| be the result of [=creating an MLActivation=] given [=this=] and "hardSwish".
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down Expand Up @@ -3726,7 +3723,6 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder>leakyRelu(|options|)</dfn> method steps are:
</summary>
1. Let |op| be the result of [=creating an MLActivation=] given [=this=], "leakyRelu" and |options|.
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down Expand Up @@ -3809,7 +3805,6 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder>linear(|options|)</dfn> method steps are:
</summary>
1. Let |op| be the result of [=creating an MLActivation=] given [=this=], "linear" and |options|.
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down Expand Up @@ -4922,7 +4917,6 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder id=relu-noargs>relu()</dfn> method steps are:
</summary>
1. Let |op| be the result of [=creating an MLActivation=] given [=this=] and "relu".
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down Expand Up @@ -5158,7 +5152,6 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder id=sigmoid-noargs>sigmoid()</dfn> method steps are:
</summary>
1. Let |op| be the result of [=creating an MLActivation=] given [=this=] and "sigmoid".
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down Expand Up @@ -5265,7 +5258,6 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder id=softmax-noargs>softmax()</dfn> method steps are:
</summary>
1. Let |op| be the result of [=creating an MLActivation=] given [=this=] and "softmax".
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down Expand Up @@ -5346,7 +5338,6 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder>softplus(|options|)</dfn> method steps are:
</summary>
1. Let |op| be the result of [=creating an MLActivation=] given [=this=], "softplus" and |options|.
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down Expand Up @@ -5410,7 +5401,6 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder id=softsign-noargs>softsign()</dfn> method steps are:
</summary>
1. Let |op| be the result of [=creating an MLActivation=] given [=this=] and "softsign".
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down Expand Up @@ -5558,7 +5548,6 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder id=tanh-noargs>tanh()</dfn> method steps are:
</summary>
1. Let |op| be the result of [=creating an MLActivation=] given [=this=] and "tanh".
1. If that [=exception/throws=] an error, re-[=exception/throw=] the error.
1. Return |op|.
</details>

Expand Down

0 comments on commit 874c04a

Please sign in to comment.