One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSRNNMatrixInferenceLayer

class · iOS 11.0+ · SDK 27.1

class MPSRNNMatrixInferenceLayer

Members (16)

method · iOS 11.0+

copy

TypeScript
copy(device?: (SDKHandle) | null): MPSRNNMatrixInferenceLayer
Swift declaration
func copy(with zone: NSZone? = nil, device: (any MTLDevice)?) -> Self
method · iOS 11.0+

encodeBidirectionalSequence

TypeScript
encodeBidirectionalSequence(commandBuffer: SDKHandle, sourceSequence: Array<MPSMatrix>, destinationForwardMatrices: Array<MPSMatrix>, destinationBackwardMatrices?: (Array<MPSMatrix>) | null): void
Swift declaration
func encodeBidirectionalSequence(commandBuffer: any MTLCommandBuffer, sourceSequence: [MPSMatrix], destinationForwardMatrices: [MPSMatrix], destinationBackwardMatrices: [MPSMatrix]?)
method · iOS 11.0+

encodeSequence

TypeScript
encodeSequenceCommandBufferSourceMatricesDestinationMatricesRecurrentInputStateRecurrentOutputStates(commandBuffer: SDKHandle, sourceMatrices: Array<MPSMatrix>, destinationMatrices: Array<MPSMatrix>, recurrentInputState?: (MPSRNNRecurrentMatrixState) | null, recurrentOutputStates?: (_Foundation_NSMutableArray) | null): void
Swift declaration
func encodeSequence(commandBuffer: any MTLCommandBuffer, sourceMatrices: [MPSMatrix], destinationMatrices: [MPSMatrix], recurrentInputState: MPSRNNRecurrentMatrixState?, recurrentOutputStates: NSMutableArray?)
method · iOS 12.0+

encodeSequence

TypeScript
encodeSequenceCommandBufferSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsRecurrentInputStateRecurrentOutputStates(commandBuffer: SDKHandle, sourceMatrices: Array<MPSMatrix>, sourceOffsets: (SDKHandle) | null, destinationMatrices: Array<MPSMatrix>, destinationOffsets?: (SDKHandle) | null, recurrentInputState?: (MPSRNNRecurrentMatrixState) | null, recurrentOutputStates?: (_Foundation_NSMutableArray) | null): void
Swift declaration
func encodeSequence(commandBuffer: any MTLCommandBuffer, sourceMatrices: [MPSMatrix], sourceOffsets: UnsafeMutablePointer<Int>?, destinationMatrices: [MPSMatrix], destinationOffsets: UnsafeMutablePointer<Int>?, recurrentInputState: MPSRNNRecurrentMatrixState?, recurrentOutputStates: NSMutableArray?)
init · iOS 11.0+

init

TypeScript
static initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSRNNMatrixInferenceLayer) | null
Swift declaration
init?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 11.0+

init

TypeScript
static initDeviceRnnDescriptor(device: SDKHandle, rnnDescriptor: MPSRNNDescriptor): MPSRNNMatrixInferenceLayer
Swift declaration
init(device: any MTLDevice, rnnDescriptor: MPSRNNDescriptor)
init · iOS 11.0+

init

TypeScript
static initDeviceRnnDescriptors(device: SDKHandle, rnnDescriptors: Array<MPSRNNDescriptor>): MPSRNNMatrixInferenceLayer
Swift declaration
init(device: any MTLDevice, rnnDescriptors: [MPSRNNDescriptor])
get · iOS 11.0+

bidirectionalCombineMode

TypeScript
get bidirectionalCombineMode(): MPSRNNBidirectionalCombineMode
Swift declaration
var bidirectionalCombineMode: MPSRNNBidirectionalCombineMode { get set }
set · iOS 11.0+

bidirectionalCombineMode

TypeScript
set bidirectionalCombineMode(value: MPSRNNBidirectionalCombineMode)
Swift declaration
var bidirectionalCombineMode: MPSRNNBidirectionalCombineMode { get set }
get · iOS 11.0+

inputFeatureChannels

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

numberOfLayers

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

outputFeatureChannels

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

recurrentOutputIsTemporary

TypeScript
get recurrentOutputIsTemporary(): boolean
Swift declaration
var recurrentOutputIsTemporary: Bool { get set }
set · iOS 11.0+

recurrentOutputIsTemporary

TypeScript
set recurrentOutputIsTemporary(value: boolean)
Swift declaration
var recurrentOutputIsTemporary: Bool { get set }
get · iOS 11.0+

storeAllIntermediateStates

TypeScript
get storeAllIntermediateStates(): boolean
Swift declaration
var storeAllIntermediateStates: Bool { get set }
set · iOS 11.0+

storeAllIntermediateStates

TypeScript
set storeAllIntermediateStates(value: boolean)
Swift declaration
var storeAllIntermediateStates: Bool { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MPSRNNMatrixInferenceLayer.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All MetalPerformanceShaders types →