MetalPerformanceShaders · IOS API REFERENCE
MPSCNNBatchNormalization
class · iOS 11.3+ · SDK 27.1
class MPSCNNBatchNormalization
Members (16)
method · iOS 11.3+encodeBatch
TypeScriptencodeBatch(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>, batchNormalizationState: MPSCNNBatchNormalizationState, destinationImages: Array<MPSImage>): void
Swift declarationfunc encodeBatch(to commandBuffer: any MTLCommandBuffer, sourceImages: [MPSImage], batchNormalizationState: MPSCNNBatchNormalizationState, destinationImages: [MPSImage])
method · iOS 11.3+encode
TypeScriptencode(commandBuffer: SDKHandle, sourceImage: MPSImage, batchNormalizationState: MPSCNNBatchNormalizationState, destinationImage: MPSImage): void
Swift declarationfunc encode(to commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, batchNormalizationState: MPSCNNBatchNormalizationState, destinationImage: MPSImage)
init · iOS 11.3+init
TypeScriptstatic initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSCNNBatchNormalization) | null
Swift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 11.3+init
TypeScriptstatic initDeviceDataSource(device: SDKHandle, dataSource: SDKHandle): MPSCNNBatchNormalization
Swift declarationconvenience init(device: any MTLDevice, dataSource: any MPSCNNBatchNormalizationDataSource)
init · iOS 12.0+init
TypeScriptstatic initDeviceDataSourceFusedNeuronDescriptor(device: SDKHandle, dataSource: SDKHandle, fusedNeuronDescriptor?: (MPSNNNeuronDescriptor) | null): MPSCNNBatchNormalization
Swift declarationinit(device: any MTLDevice, dataSource: any MPSCNNBatchNormalizationDataSource, fusedNeuronDescriptor: MPSNNNeuronDescriptor?)
method · iOS 11.3+ · Deprecated in iOS 12.0reloadDataSource
TypeScriptreloadDataSource(dataSource: SDKHandle): void
Swift declarationfunc reloadDataSource(_ dataSource: any MPSCNNBatchNormalizationDataSource)
method · iOS 12.0+reloadGammaAndBetaFromDataSource
TypeScriptreloadGammaAndBetaFromDataSource(): void
Swift declarationfunc reloadGammaAndBetaFromDataSource()
method · iOS 11.3+reloadGammaAndBeta
TypeScriptreloadGammaAndBeta(commandBuffer: SDKHandle, gammaAndBetaState: MPSCNNNormalizationGammaAndBetaState): void
Swift declarationfunc reloadGammaAndBeta(with commandBuffer: any MTLCommandBuffer, gammaAndBetaState: MPSCNNNormalizationGammaAndBetaState)
method · iOS 12.0+reloadMeanAndVarianceFromDataSource
TypeScriptreloadMeanAndVarianceFromDataSource(): void
Swift declarationfunc reloadMeanAndVarianceFromDataSource()
method · iOS 12.0+reloadMeanAndVariance
TypeScriptreloadMeanAndVariance(commandBuffer: SDKHandle, meanAndVarianceState: MPSCNNNormalizationMeanAndVarianceState): void
Swift declarationfunc reloadMeanAndVariance(with commandBuffer: any MTLCommandBuffer, meanAndVarianceState: MPSCNNNormalizationMeanAndVarianceState)
method · iOS 11.3+resultState
TypeScriptresultState(sourceImage: MPSImage, sourceStates: (Array<MPSState>) | null, destinationImage: MPSImage): (MPSCNNBatchNormalizationState) | null
Swift declarationfunc resultState(sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage) -> MPSCNNBatchNormalizationState?
method · iOS 11.3+temporaryResultState
TypeScripttemporaryResultState(commandBuffer: SDKHandle, sourceImage: MPSImage, sourceStates: (Array<MPSState>) | null, destinationImage: MPSImage): (MPSCNNBatchNormalizationState) | null
Swift declarationfunc temporaryResultState(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage) -> MPSCNNBatchNormalizationState?
get · iOS 11.3+dataSource
TypeScriptget dataSource(): SDKHandle
Swift declarationvar dataSource: any MPSCNNBatchNormalizationDataSource { get }
get · iOS 11.3+epsilon
TypeScriptget epsilon(): number
Swift declarationvar epsilon: Float { get set }
set · iOS 11.3+epsilon
TypeScriptset epsilon(value: number)
Swift declarationvar epsilon: Float { get set }
get · iOS 11.3+numberOfFeatureChannels
TypeScriptget numberOfFeatureChannels(): number
Swift declarationvar numberOfFeatureChannels: Int { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSCNNBatchNormalization.init()
inherited init: cannot prove legal (class declares 2 custom initializers)
All MetalPerformanceShaders types →