One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSCNNConvolutionTranspose

class · iOS 11.0+ · SDK 27.1

class MPSCNNConvolutionTranspose

Members (25)

method · iOS 11.3+

encodeBatch

TypeScript
encodeBatchCommandBufferSourceImagesConvolutionGradientStates(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, convolutionGradientState?: (Array<MPSCNNConvolutionGradientState>) | null): Array<MPSImage>
Swift declaration
func encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages sourceImage: [MPSImage], convolutionGradientStates convolutionGradientState: [MPSCNNConvolutionGradientState]?) -> [MPSImage]
method · iOS 11.3+

encodeBatch

TypeScript
encodeBatchCommandBufferSourceImagesConvolutionGradientStatesDestinationImages(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, convolutionGradientState: (Array<MPSCNNConvolutionGradientState>) | null, destinationImage: Array<MPSImage>): void
Swift declaration
func encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages sourceImage: [MPSImage], convolutionGradientStates convolutionGradientState: [MPSCNNConvolutionGradientState]?, destinationImages destinationImage: [MPSImage])
method · iOS 13.0+

encodeBatch

TypeScript
encodeBatchCommandBufferSourceImagesConvolutionGradientStatesDestinationStatesDestinationStateIsTemporary(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>, convolutionGradientStates: (Array<MPSCNNConvolutionGradientState>) | null, isTemporary: boolean): { $ret: Array<MPSImage>; $out: { "outStates": (_Foundation_NSArray) | null } }
Swift declaration
func 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

TypeScript
encodeCommandBufferSourceImageConvolutionGradientState(commandBuffer: SDKHandle, sourceImage: MPSImage, convolutionGradientState?: (MPSCNNConvolutionGradientState) | null): MPSImage
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, convolutionGradientState: MPSCNNConvolutionGradientState?) -> MPSImage
method · iOS 11.3+

encode

TypeScript
encodeCommandBufferSourceImageConvolutionGradientStateDestinationImage(commandBuffer: SDKHandle, sourceImage: MPSImage, convolutionGradientState: (MPSCNNConvolutionGradientState) | null, destinationImage: MPSImage): void
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, convolutionGradientState: MPSCNNConvolutionGradientState?, destinationImage: MPSImage)
method · iOS 13.0+

encode

TypeScript
encodeCommandBufferSourceImageConvolutionGradientStateDestinationStateDestinationStateIsTemporary(commandBuffer: SDKHandle, sourceImage: MPSImage, convolutionGradientState: (MPSCNNConvolutionGradientState) | null, isTemporary: boolean): { $ret: MPSImage; $out: { "outState": (MPSCNNConvolutionTransposeGradientState) | null } }
Swift declaration
func 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

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): (MPSCNNConvolutionTranspose) | null
Swift declaration
init?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 11.0+

init

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

reloadWeightsAndBiasesFromDataSource

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

reloadWeightsAndBiases

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

resultStateBatch

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

resultState

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

temporaryResultStateBatch

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

temporaryResultState

TypeScript
temporaryResultState(commandBuffer: SDKHandle, sourceImage: MPSImage, sourceStates: (Array<MPSCNNConvolutionGradientState>) | null, destinationImage: MPSImage): (MPSCNNConvolutionTransposeGradientState) | null
Swift declaration
func temporaryResultState(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, sourceStates: [MPSCNNConvolutionGradientState]?, destinationImage: MPSImage) -> MPSCNNConvolutionTransposeGradientState?
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 13.0+

dataSource

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

groups

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

inputFeatureChannels

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

kernelOffsetX

TypeScript
get kernelOffsetX(): number
Swift declaration
var kernelOffsetX: Int { get set }
set · iOS 11.0+

kernelOffsetX

TypeScript
set kernelOffsetX(value: number)
Swift declaration
var kernelOffsetX: Int { get set }
get · iOS 11.0+

kernelOffsetY

TypeScript
get kernelOffsetY(): number
Swift declaration
var kernelOffsetY: Int { get set }
set · iOS 11.0+

kernelOffsetY

TypeScript
set kernelOffsetY(value: number)
Swift declaration
var kernelOffsetY: Int { get set }
get · iOS 11.0+

outputFeatureChannels

TypeScript
get outputFeatureChannels(): number
Swift declaration
var 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 →