MetalPerformanceShaders · IOS API REFERENCE
MPSCNNConvolution
class · iOS 10.0+ · SDK 27.1
class MPSCNNConvolution
Members (25)
method · iOS 11.3+exportWeightsAndBiases
TypeScriptexportWeightsAndBiases(commandBuffer: SDKHandle, resultStateCanBeTemporary: boolean): MPSCNNConvolutionWeightsAndBiasesState
Swift declarationfunc exportWeightsAndBiases(with commandBuffer: any MTLCommandBuffer, resultStateCanBeTemporary: Bool) -> MPSCNNConvolutionWeightsAndBiasesState
init · iOS 11.0+init
TypeScriptstatic initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSCNNConvolution) | null
Swift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 10.0+ · Deprecated in iOS 11.0init
TypeScriptstatic initDeviceConvolutionDescriptorKernelWeightsBiasTermsFlags(device: SDKHandle, convolutionDescriptor: MPSCNNConvolutionDescriptor, kernelWeights: SDKHandle, biasTerms: (SDKHandle) | null, flags: MPSCNNConvolutionFlags): MPSCNNConvolution
Swift declarationinit(device: any MTLDevice, convolutionDescriptor: MPSCNNConvolutionDescriptor, kernelWeights: UnsafePointer<Float>, biasTerms: UnsafePointer<Float>?, flags: MPSCNNConvolutionFlags)
init · iOS 11.0+init
TypeScriptstatic initDeviceWeights(device: SDKHandle, weights: SDKHandle): MPSCNNConvolution
Swift declarationinit(device: any MTLDevice, weights: any MPSCNNConvolutionDataSource)
method · iOS 12.0+reloadWeightsAndBiasesFromDataSource
TypeScriptreloadWeightsAndBiasesFromDataSource(): void
Swift declarationfunc reloadWeightsAndBiasesFromDataSource()
method · iOS 11.3+reloadWeightsAndBiases
TypeScriptreloadWeightsAndBiasesWithState(commandBuffer: SDKHandle, state: MPSCNNConvolutionWeightsAndBiasesState): void
Swift declarationfunc reloadWeightsAndBiases(with commandBuffer: any MTLCommandBuffer, state: MPSCNNConvolutionWeightsAndBiasesState)
method · iOS 11.3+ · Deprecated in iOS 12.0reloadWeightsAndBiases
TypeScriptreloadWeightsAndBiasesWith(dataSource: SDKHandle): void
Swift declarationfunc reloadWeightsAndBiases(with dataSource: any MPSCNNConvolutionDataSource)
method · iOS 11.3+resultStateBatch
TypeScriptresultStateBatch(sourceImage: Array<MPSImage>, sourceStates: (Array<Array<MPSState>>) | null, destinationImage: Array<MPSImage>): (Array<MPSCNNConvolutionGradientState>) | null
Swift declarationfunc resultStateBatch(sourceImage: [MPSImage], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]) -> [MPSCNNConvolutionGradientState]?
method · iOS 11.3+resultState
TypeScriptresultState(sourceImage: MPSImage, sourceStates: (Array<MPSState>) | null, destinationImage: MPSImage): (MPSCNNConvolutionGradientState) | null
Swift declarationfunc resultState(sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage) -> MPSCNNConvolutionGradientState?
method · iOS 11.3+temporaryResultStateBatch
TypeScripttemporaryResultStateBatch(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, sourceStates: (Array<Array<MPSState>>) | null, destinationImage: Array<MPSImage>): (Array<MPSCNNConvolutionGradientState>) | null
Swift declarationfunc temporaryResultStateBatch(commandBuffer: any MTLCommandBuffer, sourceImage: [MPSImage], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]) -> [MPSCNNConvolutionGradientState]?
method · iOS 11.3+temporaryResultState
TypeScripttemporaryResultState(commandBuffer: SDKHandle, sourceImage: MPSImage, sourceStates: (Array<MPSState>) | null, destinationImage: MPSImage): (MPSCNNConvolutionGradientState) | null
Swift declarationfunc temporaryResultState(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage) -> MPSCNNConvolutionGradientState?
get · iOS 11.3+accumulatorPrecisionOption
TypeScriptget accumulatorPrecisionOption(): MPSNNConvolutionAccumulatorPrecisionOption
Swift declarationvar accumulatorPrecisionOption: MPSNNConvolutionAccumulatorPrecisionOption { get set }
set · iOS 11.3+accumulatorPrecisionOption
TypeScriptset accumulatorPrecisionOption(value: MPSNNConvolutionAccumulatorPrecisionOption)
Swift declarationvar accumulatorPrecisionOption: MPSNNConvolutionAccumulatorPrecisionOption { get set }
get · iOS 10.0+channelMultiplier
TypeScriptget channelMultiplier(): number
Swift declarationvar channelMultiplier: Int { get }
get · iOS 10.0+dataSource
TypeScriptget dataSource(): SDKHandle
Swift declarationvar dataSource: any MPSCNNConvolutionDataSource { get }
get · iOS 12.0+fusedNeuronDescriptor
TypeScriptget fusedNeuronDescriptor(): (MPSNNNeuronDescriptor) | null
Swift declarationvar fusedNeuronDescriptor: MPSNNNeuronDescriptor? { get }
get · iOS 10.0+groups
TypeScriptget groups(): number
Swift declarationvar groups: Int { get }
get · iOS 10.0+inputFeatureChannels
TypeScriptget inputFeatureChannels(): number
Swift declarationvar inputFeatureChannels: Int { get }
get · iOS 10.0+ · Deprecated in iOS 11.0neuron
TypeScriptget neuron(): (MPSCNNNeuron) | null
Swift declarationvar neuron: MPSCNNNeuron? { get }
get · iOS 10.0+ · Deprecated in iOS 12.0neuronParameterA
TypeScriptget neuronParameterA(): number
Swift declarationvar neuronParameterA: Float { get }
get · iOS 10.0+ · Deprecated in iOS 12.0neuronParameterB
TypeScriptget neuronParameterB(): number
Swift declarationvar neuronParameterB: Float { get }
get · iOS 10.0+ · Deprecated in iOS 12.0neuronParameterC
TypeScriptget neuronParameterC(): number
Swift declarationvar neuronParameterC: Float { get }
get · iOS 10.0+ · Deprecated in iOS 12.0neuronType
TypeScriptget neuronType(): MPSCNNNeuronType
Swift declarationvar neuronType: MPSCNNNeuronType { get }
get · iOS 10.0+outputFeatureChannels
TypeScriptget outputFeatureChannels(): number
Swift declarationvar outputFeatureChannels: Int { get }
get · iOS 10.0+subPixelScaleFactor
TypeScriptget subPixelScaleFactor(): number
Swift declarationvar 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 →