Contents

softPlus(beta:)

Creates an instance of a soft plus activation layer using the beta value you specify for the soft plus formation.

Declaration

class func softPlus(beta: Float) -> Self

Parameters

  • beta:

    The beta value for the softplus formation.

Return Value

A new MLCActivationLayer instance.

Discussion

The softPlus(beta:) factory type method creates an activation descriptor using init(type:a:b:), where type = MLCActivationType.softPlus, a = 1.0 / beta, and b = beta, and passes that descriptor to init(descriptor:).

See Also

Factory Methods