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
reductionModeproperty. - offsets:
See
offsetsproperty. - strides:
See
stridesproperty. - dilationRates:
See
dilationRatesproperty. - explicitPadding:
See
explicitPaddingproperty. - boundaryMode:
See
boundaryModeproperty. - paddingStyle:
See
paddingStyleproperty. - paddingConstant:
See
paddingConstantproperty.
Return Value
A valid MPSGraphStencilOpDescriptor object