Contents

init(device:kernelWidth:kernelHeight:)

Initializes a spatial normalization kernel.

Declaration

init(device: any MTLDevice, kernelWidth: Int, kernelHeight: Int)

Parameters

  • device:

    The device the kernel will run on.

  • kernelWidth:

    The width of the kernel.

  • kernelHeight:

    The height of the kernel.

Return Value

A valid MPSCNNSpatialNormalization object or nil, if failure.

Discussion

See Also

Initializers