ActivationOperator
public class ActivationOperator: UnaryOperator
The abstract class for all activation operator.
An activation operator is actually a special kind of UnaryOperator
doing a little bit more complex element-wise computation.
-
Convenience initializer Subclass required to override this function to assign
cpuComputeBlock
andmetalKernelFuncLabel
Declaration
Swift
required public convenience init(computationDelegate: OperatorCalculationDelegate? = nil)
Parameters
computationDelegate
computationDelegate
-
Construct an
ActivationOperator
from aString
name.Declaration
Swift
public convenience init(activationOpName: String)