Instance Method

initWithDevice:a:b:

Initializes a linear neuron filter.

Declaration

- (instancetype)initWithDevice:(id<MTLDevice>)device a:(float)a b:(float)b;

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.