copy
TypeScriptcopy(device?: (SDKHandle) | null): MPSRNNMatrixTrainingLayerSwift declarationfunc copy(with zone: NSZone? = nil, device: (any MTLDevice)?) -> Selfclass · iOS 12.0+ · SDK 27.1
class MPSRNNMatrixTrainingLayercopy(device?: (SDKHandle) | null): MPSRNNMatrixTrainingLayerSwift declarationfunc copy(with zone: NSZone? = nil, device: (any MTLDevice)?) -> SelfcreateTemporaryWeightGradientMatrices(matricesOut: _Foundation_NSMutableArray, dataType: MPSDataType, commandBuffer: SDKHandle): voidSwift declarationfunc createTemporaryWeightGradientMatrices(_ matricesOut: NSMutableArray, dataType: MPSDataType, commandBuffer: any MTLCommandBuffer)createWeightGradientMatrices(matricesOut: _Foundation_NSMutableArray, dataType: MPSDataType): voidSwift declarationfunc createWeightGradientMatrices(_ matricesOut: NSMutableArray, dataType: MPSDataType)createWeightMatrices(matricesOut: _Foundation_NSMutableArray): voidSwift declarationfunc createWeightMatrices(_ matricesOut: NSMutableArray)encodeCopyWeights(commandBuffer: SDKHandle, weights: Array<MPSMatrix>, matrixId: MPSRNNMatrixId, matrix: MPSMatrix, copyFromWeightsToMatrix: boolean, matrixOffset: _Metal_MTLOrigin): voidSwift declarationfunc encodeCopyWeights(commandBuffer: any MTLCommandBuffer, weights: [MPSMatrix], matrixId: MPSRNNMatrixId, matrix: MPSMatrix, copyFromWeightsToMatrix: Bool, matrixOffset: MTLOrigin)encodeForwardSequenceCommandBufferSourceMatricesDestinationMatricesTrainingStatesWeights(commandBuffer: SDKHandle, sourceMatrices: Array<MPSMatrix>, destinationMatrices: Array<MPSMatrix>, trainingStates: _Foundation_NSMutableArray, weights: Array<MPSMatrix>): voidSwift declarationfunc encodeForwardSequence(commandBuffer: any MTLCommandBuffer, sourceMatrices: [MPSMatrix], destinationMatrices: [MPSMatrix], trainingStates: NSMutableArray, weights: [MPSMatrix])encodeForwardSequenceCommandBufferSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsTrainingStatesRecurrentInputStateRecurrentOutputStatesWeights(commandBuffer: SDKHandle, sourceMatrices: Array<MPSMatrix>, sourceOffsets: (SDKHandle) | null, destinationMatrices: Array<MPSMatrix>, destinationOffsets: (SDKHandle) | null, trainingStates: _Foundation_NSMutableArray, recurrentInputState: (MPSRNNRecurrentMatrixState) | null, recurrentOutputStates: (_Foundation_NSMutableArray) | null, weights: Array<MPSMatrix>): voidSwift declarationfunc encodeForwardSequence(commandBuffer: any MTLCommandBuffer, sourceMatrices: [MPSMatrix], sourceOffsets: UnsafeMutablePointer<Int>?, destinationMatrices: [MPSMatrix], destinationOffsets: UnsafeMutablePointer<Int>?, trainingStates: NSMutableArray, recurrentInputState: MPSRNNRecurrentMatrixState?, recurrentOutputStates: NSMutableArray?, weights: [MPSMatrix])encodeGradientSequenceCommandBufferForwardSourcesForwardSourceOffsetsSourceGradientsSourceOffsetsDestinationGradientsDestinationOffsetsWeightGradientsTrainingStatesRecurrentInputStateRecurrentOutputStatesWeights(commandBuffer: SDKHandle, forwardSources: Array<MPSMatrix>, forwardSourceOffsets: (SDKHandle) | null, sourceGradients: Array<MPSMatrix>, sourceGradientOffsets: (SDKHandle) | null, destinationGradients: (Array<MPSMatrix>) | null, destinationOffsets: (SDKHandle) | null, weightGradients: (Array<MPSMatrix>) | null, trainingStates: Array<MPSRNNMatrixTrainingState>, recurrentInputState: (MPSRNNRecurrentMatrixState) | null, recurrentOutputStates: (_Foundation_NSMutableArray) | null, weights: Array<MPSMatrix>): voidSwift declarationfunc encodeGradientSequence(commandBuffer: any MTLCommandBuffer, forwardSources: [MPSMatrix], forwardSourceOffsets: UnsafeMutablePointer<Int>?, sourceGradients: [MPSMatrix], sourceOffsets sourceGradientOffsets: UnsafeMutablePointer<Int>?, destinationGradients: [MPSMatrix]?, destinationOffsets: UnsafeMutablePointer<Int>?, weightGradients: [MPSMatrix]?, trainingStates: [MPSRNNMatrixTrainingState], recurrentInputState: MPSRNNRecurrentMatrixState?, recurrentOutputStates: NSMutableArray?, weights: [MPSMatrix])encodeGradientSequenceCommandBufferForwardSourcesSourceGradientsDestinationGradientsWeightGradientsTrainingStatesWeights(commandBuffer: SDKHandle, forwardSources: Array<MPSMatrix>, sourceGradients: Array<MPSMatrix>, destinationGradients: (Array<MPSMatrix>) | null, weightGradients: (Array<MPSMatrix>) | null, trainingStates: Array<MPSRNNMatrixTrainingState>, weights: Array<MPSMatrix>): voidSwift declarationfunc encodeGradientSequence(commandBuffer: any MTLCommandBuffer, forwardSources: [MPSMatrix], sourceGradients: [MPSMatrix], destinationGradients: [MPSMatrix]?, weightGradients: [MPSMatrix]?, trainingStates: [MPSRNNMatrixTrainingState], weights: [MPSMatrix])static initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSRNNMatrixTrainingLayer) | nullSwift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)static initDeviceRnnDescriptorTrainableWeights(device: SDKHandle, rnnDescriptor: MPSRNNDescriptor, trainableWeights: _Foundation_NSMutableArray): MPSRNNMatrixTrainingLayerSwift declarationinit(device: any MTLDevice, rnnDescriptor: MPSRNNDescriptor, trainableWeights: NSMutableArray)get accumulateWeightGradients(): booleanSwift declarationvar accumulateWeightGradients: Bool { get set }set accumulateWeightGradients(value: boolean)Swift declarationvar accumulateWeightGradients: Bool { get set }get inputFeatureChannels(): numberSwift declarationvar inputFeatureChannels: Int { get }get outputFeatureChannels(): numberSwift declarationvar outputFeatureChannels: Int { get }get recurrentOutputIsTemporary(): booleanSwift declarationvar recurrentOutputIsTemporary: Bool { get set }set recurrentOutputIsTemporary(value: boolean)Swift declarationvar recurrentOutputIsTemporary: Bool { get set }get storeAllIntermediateStates(): booleanSwift declarationvar storeAllIntermediateStates: Bool { get set }set storeAllIntermediateStates(value: boolean)Swift declarationvar storeAllIntermediateStates: Bool { get set }get trainingStateIsTemporary(): booleanSwift declarationvar trainingStateIsTemporary: Bool { get set }set trainingStateIsTemporary(value: boolean)Swift declarationvar trainingStateIsTemporary: Bool { get set }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSRNNMatrixTrainingLayer.init()
inherited init: cannot prove legal (class declares 1 custom initializer)