MetalPerformanceShaders · IOS API REFERENCE
MPSCNNConvolutionTranspose
class · iOS 11.0+ · SDK 27.1
class MPSCNNConvolutionTranspose
Members (25)
method · iOS 11.3+encodeBatch
TypeScriptencodeBatchCommandBufferSourceImagesConvolutionGradientStates(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, convolutionGradientState?: (Array<MPSCNNConvolutionGradientState>) | null): Array<MPSImage>
Swift declarationfunc encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages sourceImage: [MPSImage], convolutionGradientStates convolutionGradientState: [MPSCNNConvolutionGradientState]?) -> [MPSImage]
method · iOS 11.3+encodeBatch
TypeScriptencodeBatchCommandBufferSourceImagesConvolutionGradientStatesDestinationImages(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, convolutionGradientState: (Array<MPSCNNConvolutionGradientState>) | null, destinationImage: Array<MPSImage>): void
Swift declarationfunc encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages sourceImage: [MPSImage], convolutionGradientStates convolutionGradientState: [MPSCNNConvolutionGradientState]?, destinationImages destinationImage: [MPSImage])
method · iOS 13.0+encodeBatch
TypeScriptencodeBatchCommandBufferSourceImagesConvolutionGradientStatesDestinationStatesDestinationStateIsTemporary(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>, convolutionGradientStates: (Array<MPSCNNConvolutionGradientState>) | null, isTemporary: boolean): { $ret: Array<MPSImage>; $out: { "outStates": (_Foundation_NSArray) | null } }
Swift declarationfunc encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages: [MPSImage], convolutionGradientStates: [MPSCNNConvolutionGradientState]?, destinationStates outStates: AutoreleasingUnsafeMutablePointer<NSArray?>, destinationStateIsTemporary isTemporary: Bool) -> [MPSImage]
Omit the output parameters from the call. The result contains $ret and $out, with outStates inside $out.
method · iOS 11.3+encode
TypeScriptencodeCommandBufferSourceImageConvolutionGradientState(commandBuffer: SDKHandle, sourceImage: MPSImage, convolutionGradientState?: (MPSCNNConvolutionGradientState) | null): MPSImage
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, convolutionGradientState: MPSCNNConvolutionGradientState?) -> MPSImage
method · iOS 11.3+encode
TypeScriptencodeCommandBufferSourceImageConvolutionGradientStateDestinationImage(commandBuffer: SDKHandle, sourceImage: MPSImage, convolutionGradientState: (MPSCNNConvolutionGradientState) | null, destinationImage: MPSImage): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, convolutionGradientState: MPSCNNConvolutionGradientState?, destinationImage: MPSImage)
method · iOS 13.0+encode
TypeScriptencodeCommandBufferSourceImageConvolutionGradientStateDestinationStateDestinationStateIsTemporary(commandBuffer: SDKHandle, sourceImage: MPSImage, convolutionGradientState: (MPSCNNConvolutionGradientState) | null, isTemporary: boolean): { $ret: MPSImage; $out: { "outState": (MPSCNNConvolutionTransposeGradientState) | null } }
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, convolutionGradientState: MPSCNNConvolutionGradientState?, destinationState outState: AutoreleasingUnsafeMutablePointer<MPSCNNConvolutionTransposeGradientState?>, destinationStateIsTemporary isTemporary: Bool) -> MPSImage
Omit the output parameters from the call. The result contains $ret and $out, with outState inside $out.
method · iOS 13.0+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): (MPSCNNConvolutionTranspose) | null
Swift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 11.0+init
TypeScriptstatic initDeviceWeights(device: SDKHandle, weights: SDKHandle): MPSCNNConvolutionTranspose
Swift declarationinit(device: any MTLDevice, weights: any MPSCNNConvolutionDataSource)
method · iOS 13.0+reloadWeightsAndBiasesFromDataSource
TypeScriptreloadWeightsAndBiasesFromDataSource(): void
Swift declarationfunc reloadWeightsAndBiasesFromDataSource()
method · iOS 13.0+reloadWeightsAndBiases
TypeScriptreloadWeightsAndBiases(commandBuffer: SDKHandle, state: MPSCNNConvolutionWeightsAndBiasesState): void
Swift declarationfunc reloadWeightsAndBiases(with commandBuffer: any MTLCommandBuffer, state: MPSCNNConvolutionWeightsAndBiasesState)
method · iOS 11.3+resultStateBatch
TypeScriptresultStateBatch(sourceImage: Array<MPSImage>, sourceStates: (Array<Array<MPSCNNConvolutionGradientState>>) | null, destinationImage: Array<MPSImage>): (Array<MPSCNNConvolutionTransposeGradientState>) | null
Swift declarationfunc resultStateBatch(sourceImage: [MPSImage], sourceStates: [[MPSCNNConvolutionGradientState]]?, destinationImage: [MPSImage]) -> [MPSCNNConvolutionTransposeGradientState]?
method · iOS 11.3+resultState
TypeScriptresultState(sourceImage: MPSImage, sourceStates: (Array<MPSCNNConvolutionGradientState>) | null, destinationImage: MPSImage): (MPSCNNConvolutionTransposeGradientState) | null
Swift declarationfunc resultState(sourceImage: MPSImage, sourceStates: [MPSCNNConvolutionGradientState]?, destinationImage: MPSImage) -> MPSCNNConvolutionTransposeGradientState?
method · iOS 11.3+temporaryResultStateBatch
TypeScripttemporaryResultStateBatch(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, sourceStates: (Array<Array<MPSCNNConvolutionGradientState>>) | null, destinationImage: Array<MPSImage>): (Array<MPSCNNConvolutionTransposeGradientState>) | null
Swift declarationfunc temporaryResultStateBatch(commandBuffer: any MTLCommandBuffer, sourceImage: [MPSImage], sourceStates: [[MPSCNNConvolutionGradientState]]?, destinationImage: [MPSImage]) -> [MPSCNNConvolutionTransposeGradientState]?
method · iOS 11.3+temporaryResultState
TypeScripttemporaryResultState(commandBuffer: SDKHandle, sourceImage: MPSImage, sourceStates: (Array<MPSCNNConvolutionGradientState>) | null, destinationImage: MPSImage): (MPSCNNConvolutionTransposeGradientState) | null
Swift declarationfunc temporaryResultState(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, sourceStates: [MPSCNNConvolutionGradientState]?, destinationImage: MPSImage) -> MPSCNNConvolutionTransposeGradientState?
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 13.0+dataSource
TypeScriptget dataSource(): SDKHandle
Swift declarationvar dataSource: any MPSCNNConvolutionDataSource { get }
get · iOS 11.0+groups
TypeScriptget groups(): number
Swift declarationvar groups: Int { get }
get · iOS 11.0+inputFeatureChannels
TypeScriptget inputFeatureChannels(): number
Swift declarationvar inputFeatureChannels: Int { get }
get · iOS 11.0+kernelOffsetX
TypeScriptget kernelOffsetX(): number
Swift declarationvar kernelOffsetX: Int { get set }
set · iOS 11.0+kernelOffsetX
TypeScriptset kernelOffsetX(value: number)
Swift declarationvar kernelOffsetX: Int { get set }
get · iOS 11.0+kernelOffsetY
TypeScriptget kernelOffsetY(): number
Swift declarationvar kernelOffsetY: Int { get set }
set · iOS 11.0+kernelOffsetY
TypeScriptset kernelOffsetY(value: number)
Swift declarationvar kernelOffsetY: Int { get set }
get · iOS 11.0+outputFeatureChannels
TypeScriptget outputFeatureChannels(): number
Swift declarationvar outputFeatureChannels: Int { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSCNNConvolutionTranspose.init()
inherited init: cannot prove legal (class declares 1 custom initializer)
All MetalPerformanceShaders types →