Initializer

init(device:a:b:)

Initializes a linear neuron filter.

Declaration

init(device: 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 MPSCNNNeuronLinear object or nil, if failure.