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