diff --git a/index.bs b/index.bs index d503d4fd..d949d99c 100644 --- a/index.bs +++ b/index.bs @@ -1164,9 +1164,6 @@ interface MLActivation {}; :: The {{MLActivation}}'s name. : \[[builder]] of type {{MLGraphBuilder}} - :: - The graph builder object this {{MLActivation}} belongs to. - : \[[options]] of type [=ordered map=] :: A dictionary containing {{MLActivation}} options. : \[[operator]] of type [=operator=] @@ -1186,16 +1183,13 @@ The {{MLActivation}} objects (including the ones passed as input to methods) are
- To create an MLActivation given {{MLGraphBuilder}} |builder|, [=string=] |name|, optional [=ordered map=] |options| and optional algorithm |init-steps|, run the following steps: + To create an MLActivation given {{MLGraphBuilder}} |builder|, [=string=] |name| and optional [=ordered map=] |options|, run the following steps: 1. Let |activation| be a new {{MLActivation}}. 1. Set |activation|.{{MLActivation/[[builder]]}} to |builder|. 1. Set |activation|.{{MLActivation/[[name]]}} to |name|. - 1. If |options| is given, set |activation|.{{MLActivation/[[options]]}} to |options|. - 1. Let |operator| be an [=operator=] for the |name| operation. + 1. Let |operator| be an [=operator=] for the |name| operation, given |options|. 1. Set |activation|.{{MLActivation/[[operator]]}} to |operator|. - 1. If |init-steps| are given, run |init-steps| with |options|. - 1. Otherwise, initialize |activation|.{{MLActivation/[[operator]]}} given |options| in an [=implementation-defined=] way for the given |name| operation. 1. Return |activation|.
@@ -1721,7 +1715,6 @@ partial interface MLGraphBuilder { 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|. @@ -3373,7 +3366,6 @@ partial interface MLGraphBuilder { The hardSigmoid(|options|) method steps are: 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|. @@ -3445,7 +3437,6 @@ partial interface MLGraphBuilder { The hardSwish() method steps are: 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|. @@ -3726,7 +3717,6 @@ partial interface MLGraphBuilder { The leakyRelu(|options|) method steps are: 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|. @@ -3809,7 +3799,6 @@ partial interface MLGraphBuilder { The linear(|options|) method steps are: 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|. @@ -4922,7 +4911,6 @@ partial interface MLGraphBuilder { The relu() method steps are: 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|. @@ -5158,7 +5146,6 @@ partial interface MLGraphBuilder { The sigmoid() method steps are: 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|. @@ -5265,7 +5252,6 @@ partial interface MLGraphBuilder { The softmax() method steps are: 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|. @@ -5346,7 +5332,6 @@ partial interface MLGraphBuilder { The softplus(|options|) method steps are: 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|. @@ -5410,7 +5395,6 @@ partial interface MLGraphBuilder { The softsign() method steps are: 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|. @@ -5558,7 +5542,6 @@ partial interface MLGraphBuilder { The tanh() method steps are: 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|.