elu(a:)
Creates an instance of an ELU activation layer using the alpha value you specify for the ELU formation.
Declaration
class func elu(a: Float) -> SelfParameters
- a:
The alpha value for the ELU formation.
Return Value
A new MLCActivationLayer instance.
Discussion
The elu(a:) factory type method creates an activation descriptor using init(type:a:), where type = MLCActivationType.elu and a = alpha, and passes that descriptor to init(descriptor:).