MetalPerformanceShaders · IOS API REFERENCE
MPSCNNBatchNormalizationGradient
class · iOS 11.3+ · SDK 27.1
class MPSCNNBatchNormalizationGradient
Members (6)
method · iOS 11.3+encodeBatch
TypeScriptencodeBatchToSourceGradientsSourceImagesBatchNormalizationState(commandBuffer: SDKHandle, sourceGradients: Array<MPSImage>, sourceImages: Array<MPSImage>, batchNormalizationState: MPSCNNBatchNormalizationState): Array<MPSImage>
Swift declarationfunc encodeBatch(to commandBuffer: any MTLCommandBuffer, sourceGradients: [MPSImage], sourceImages: [MPSImage], batchNormalizationState: MPSCNNBatchNormalizationState) -> [MPSImage]
method · iOS 11.3+encodeBatch
TypeScriptencodeBatchToSourceGradientsSourceImagesBatchNormalizationStateDestinationGradients(commandBuffer: SDKHandle, sourceGradients: Array<MPSImage>, sourceImages: Array<MPSImage>, batchNormalizationState: MPSCNNBatchNormalizationState, destinationGradients: Array<MPSImage>): void
Swift declarationfunc encodeBatch(to commandBuffer: any MTLCommandBuffer, sourceGradients: [MPSImage], sourceImages: [MPSImage], batchNormalizationState: MPSCNNBatchNormalizationState, destinationGradients: [MPSImage])
method · iOS 11.3+encode
TypeScriptencodeToSourceGradientSourceImageBatchNormalizationState(commandBuffer: SDKHandle, sourceGradient: MPSImage, sourceImage: MPSImage, batchNormalizationState: MPSCNNBatchNormalizationState): MPSImage
Swift declarationfunc encode(to commandBuffer: any MTLCommandBuffer, sourceGradient: MPSImage, sourceImage: MPSImage, batchNormalizationState: MPSCNNBatchNormalizationState) -> MPSImage
method · iOS 11.3+encode
TypeScriptencodeToSourceGradientSourceImageBatchNormalizationStateDestinationGradient(commandBuffer: SDKHandle, sourceGradient: MPSImage, sourceImage: MPSImage, batchNormalizationState: MPSCNNBatchNormalizationState, destinationGradient: MPSImage): void
Swift declarationfunc encode(to commandBuffer: any MTLCommandBuffer, sourceGradient: MPSImage, sourceImage: MPSImage, batchNormalizationState: MPSCNNBatchNormalizationState, destinationGradient: MPSImage)
init · iOS 11.3+init
TypeScriptstatic initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSCNNBatchNormalizationGradient) | null
Swift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 12.0+init
TypeScriptstatic initDeviceFusedNeuronDescriptor(device: SDKHandle, fusedNeuronDescriptor?: (MPSNNNeuronDescriptor) | null): MPSCNNBatchNormalizationGradient
Swift declarationinit(device: any MTLDevice, fusedNeuronDescriptor: MPSNNNeuronDescriptor?)
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSCNNBatchNormalizationGradient.init()
inherited init: cannot prove legal (class declares 1 custom initializer)
All MetalPerformanceShaders types →