init(device:a:b:)
Initializes a hyperbolic tangent neuron filter.
Declaration
init(device: any MTLDevice, a: Float, b: Float)Parameters
- device:
The device the filter will run on.
- a:
The “a” variable of the filter function.
- b:
The “b” variable of the filter function.
Return Value
A valid MPSCNNNeuronTanH object or nil, if failure.