Contents

softShrink

Creates an instance of a soft shrink activation layer.

Declaration

class var softShrink: MLCActivationLayer { get }

Discussion

This factory creates an activation descriptor using init(type:a:), where type = MLCActivationType.softShrink and a = 0.5, and passes that descriptor to init(descriptor:).

See Also

Factory Properties