Contents

hardShrink

Creates an instance of a hard shrink activation layer.

Declaration

class var hardShrink: MLCActivationLayer { get }

Discussion

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

See Also

Factory Properties