Contents

tanh

Creates an instance of a hyperbolic tangent activation layer.

Declaration

class var tanh: MLCActivationLayer { get }

Discussion

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

See Also

Factory Properties