SELUOperator
public class SELUOperator: ActivationOperator
Scaled Exponential Linear Unit.
y = scale * elu(x)
alpha
default value is 1.673263
scale
default value is 1.050701
Reference
-
alpha for ELU operation. Default is
1.673263
Declaration
Swift
public var alpha:Float = 1.673263
-
scalue factor. Defualt is
1.050701
Declaration
Swift
public var scale:Float = 1.050701
-
Convenience initializer Subclass required to override this function to assign
cpuComputeBlock
andmetalKernelFuncLabel
Declaration
Swift
required public convenience init(computationDelegate: OperatorCalculationDelegate? = nil)
Parameters
computationDelegate
computationDelegate
-
Declaration
Swift
public convenience init(computationDelegate: OperatorCalculationDelegate? = nil, alpha: Float, scale:Float)
Parameters
computationDelegate
computationDelegate description
alpha
alpha description
-
Attribute
alpha
as aScalarSymbol
. Attributescale
as aScalarSymbol
Declaration
Swift
public override func paramSymbols() -> [GraphSymbol]
Return Value
Array of GraphSymbol
-
Override CPU
Declaration
Swift
internal override func cpu()
-
Override GPU calculation cause there’s a hyperparameter to pass-in
Declaration
Swift
internal override func gpu()