One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSCNNConvolution

class · iOS 10.0+ · SDK 27.1

class MPSCNNConvolution

Members (25)

method · iOS 11.3+

exportWeightsAndBiases

TypeScript
exportWeightsAndBiases(commandBuffer: SDKHandle, resultStateCanBeTemporary: boolean): MPSCNNConvolutionWeightsAndBiasesState
Swift declaration
func exportWeightsAndBiases(with commandBuffer: any MTLCommandBuffer, resultStateCanBeTemporary: Bool) -> MPSCNNConvolutionWeightsAndBiasesState
init · iOS 11.0+

init

TypeScript
static initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSCNNConvolution) | null
Swift declaration
init?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 10.0+ · Deprecated in iOS 11.0

init

TypeScript
static initDeviceConvolutionDescriptorKernelWeightsBiasTermsFlags(device: SDKHandle, convolutionDescriptor: MPSCNNConvolutionDescriptor, kernelWeights: SDKHandle, biasTerms: (SDKHandle) | null, flags: MPSCNNConvolutionFlags): MPSCNNConvolution
Swift declaration
init(device: any MTLDevice, convolutionDescriptor: MPSCNNConvolutionDescriptor, kernelWeights: UnsafePointer<Float>, biasTerms: UnsafePointer<Float>?, flags: MPSCNNConvolutionFlags)
init · iOS 11.0+

init

TypeScript
static initDeviceWeights(device: SDKHandle, weights: SDKHandle): MPSCNNConvolution
Swift declaration
init(device: any MTLDevice, weights: any MPSCNNConvolutionDataSource)
method · iOS 12.0+

reloadWeightsAndBiasesFromDataSource

TypeScript
reloadWeightsAndBiasesFromDataSource(): void
Swift declaration
func reloadWeightsAndBiasesFromDataSource()
method · iOS 11.3+

reloadWeightsAndBiases

TypeScript
reloadWeightsAndBiasesWithState(commandBuffer: SDKHandle, state: MPSCNNConvolutionWeightsAndBiasesState): void
Swift declaration
func reloadWeightsAndBiases(with commandBuffer: any MTLCommandBuffer, state: MPSCNNConvolutionWeightsAndBiasesState)
method · iOS 11.3+ · Deprecated in iOS 12.0

reloadWeightsAndBiases

TypeScript
reloadWeightsAndBiasesWith(dataSource: SDKHandle): void
Swift declaration
func reloadWeightsAndBiases(with dataSource: any MPSCNNConvolutionDataSource)
method · iOS 11.3+

resultStateBatch

TypeScript
resultStateBatch(sourceImage: Array<MPSImage>, sourceStates: (Array<Array<MPSState>>) | null, destinationImage: Array<MPSImage>): (Array<MPSCNNConvolutionGradientState>) | null
Swift declaration
func resultStateBatch(sourceImage: [MPSImage], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]) -> [MPSCNNConvolutionGradientState]?
method · iOS 11.3+

resultState

TypeScript
resultState(sourceImage: MPSImage, sourceStates: (Array<MPSState>) | null, destinationImage: MPSImage): (MPSCNNConvolutionGradientState) | null
Swift declaration
func resultState(sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage) -> MPSCNNConvolutionGradientState?
method · iOS 11.3+

temporaryResultStateBatch

TypeScript
temporaryResultStateBatch(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, sourceStates: (Array<Array<MPSState>>) | null, destinationImage: Array<MPSImage>): (Array<MPSCNNConvolutionGradientState>) | null
Swift declaration
func temporaryResultStateBatch(commandBuffer: any MTLCommandBuffer, sourceImage: [MPSImage], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]) -> [MPSCNNConvolutionGradientState]?
method · iOS 11.3+

temporaryResultState

TypeScript
temporaryResultState(commandBuffer: SDKHandle, sourceImage: MPSImage, sourceStates: (Array<MPSState>) | null, destinationImage: MPSImage): (MPSCNNConvolutionGradientState) | null
Swift declaration
func temporaryResultState(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage) -> MPSCNNConvolutionGradientState?
get · iOS 11.3+

accumulatorPrecisionOption

TypeScript
get accumulatorPrecisionOption(): MPSNNConvolutionAccumulatorPrecisionOption
Swift declaration
var accumulatorPrecisionOption: MPSNNConvolutionAccumulatorPrecisionOption { get set }
set · iOS 11.3+

accumulatorPrecisionOption

TypeScript
set accumulatorPrecisionOption(value: MPSNNConvolutionAccumulatorPrecisionOption)
Swift declaration
var accumulatorPrecisionOption: MPSNNConvolutionAccumulatorPrecisionOption { get set }
get · iOS 10.0+

channelMultiplier

TypeScript
get channelMultiplier(): number
Swift declaration
var channelMultiplier: Int { get }
get · iOS 10.0+

dataSource

TypeScript
get dataSource(): SDKHandle
Swift declaration
var dataSource: any MPSCNNConvolutionDataSource { get }
get · iOS 12.0+

fusedNeuronDescriptor

TypeScript
get fusedNeuronDescriptor(): (MPSNNNeuronDescriptor) | null
Swift declaration
var fusedNeuronDescriptor: MPSNNNeuronDescriptor? { get }
get · iOS 10.0+

groups

TypeScript
get groups(): number
Swift declaration
var groups: Int { get }
get · iOS 10.0+

inputFeatureChannels

TypeScript
get inputFeatureChannels(): number
Swift declaration
var inputFeatureChannels: Int { get }
get · iOS 10.0+ · Deprecated in iOS 11.0

neuron

TypeScript
get neuron(): (MPSCNNNeuron) | null
Swift declaration
var neuron: MPSCNNNeuron? { get }
get · iOS 10.0+ · Deprecated in iOS 12.0

neuronParameterA

TypeScript
get neuronParameterA(): number
Swift declaration
var neuronParameterA: Float { get }
get · iOS 10.0+ · Deprecated in iOS 12.0

neuronParameterB

TypeScript
get neuronParameterB(): number
Swift declaration
var neuronParameterB: Float { get }
get · iOS 10.0+ · Deprecated in iOS 12.0

neuronParameterC

TypeScript
get neuronParameterC(): number
Swift declaration
var neuronParameterC: Float { get }
get · iOS 10.0+ · Deprecated in iOS 12.0

neuronType

TypeScript
get neuronType(): MPSCNNNeuronType
Swift declaration
var neuronType: MPSCNNNeuronType { get }
get · iOS 10.0+

outputFeatureChannels

TypeScript
get outputFeatureChannels(): number
Swift declaration
var outputFeatureChannels: Int { get }
get · iOS 10.0+

subPixelScaleFactor

TypeScript
get subPixelScaleFactor(): number
Swift declaration
var subPixelScaleFactor: Int { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MPSCNNConvolution.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All MetalPerformanceShaders types →