Contents

init(reductionMode:offsets:strides:dilationRates:explicitPadding:boundaryMode:paddingStyle:paddingConstant:)

Creates a stencil operation descriptor with given values.

Declaration

convenience init?(reductionMode: MPSGraphReductionMode, offsets: [NSNumber], strides: [NSNumber], dilationRates: [NSNumber], explicitPadding: [NSNumber], boundaryMode: MPSGraphPaddingMode, paddingStyle: MPSGraphPaddingStyle, paddingConstant: Float)

Parameters

  • reductionMode:

    See reductionMode property.

  • offsets:

    See offsets property.

  • strides:

    See strides property.

  • dilationRates:

    See dilationRates property.

  • explicitPadding:

    See explicitPadding property.

  • boundaryMode:

    See boundaryMode property.

  • paddingStyle:

    See paddingStyle property.

  • paddingConstant:

    See paddingConstant property.

Return Value

A valid MPSGraphStencilOpDescriptor object