MetalPerformanceShaders · IOS API REFERENCE
MPSNNOptimizerAdam
class · iOS 12.0+ · SDK 27.1
class MPSNNOptimizerAdam
Members (17)
method · iOS 13.0+encode
TypeScriptencodeCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBuffer: SDKHandle, batchNormalizationGradientState: MPSCNNBatchNormalizationState, batchNormalizationSourceState: MPSCNNBatchNormalizationState, inputMomentumVectors: Array<MPSVector>, inputVelocityVectors: Array<MPSVector>, maximumVelocityVectors: (Array<MPSVector>) | null, resultState: MPSCNNNormalizationGammaAndBetaState): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, batchNormalizationGradientState: MPSCNNBatchNormalizationState, batchNormalizationSourceState: MPSCNNBatchNormalizationState, inputMomentumVectors: [MPSVector], inputVelocityVectors: [MPSVector], maximumVelocityVectors: [MPSVector]?, resultState: MPSCNNNormalizationGammaAndBetaState)
method · iOS 12.0+encode
TypeScriptencodeCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsResultState(commandBuffer: SDKHandle, batchNormalizationGradientState: MPSCNNBatchNormalizationState, batchNormalizationSourceState: MPSCNNBatchNormalizationState, inputMomentumVectors: (Array<MPSVector>) | null, inputVelocityVectors: (Array<MPSVector>) | null, resultState: MPSCNNNormalizationGammaAndBetaState): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, batchNormalizationGradientState: MPSCNNBatchNormalizationState, batchNormalizationSourceState: MPSCNNBatchNormalizationState, inputMomentumVectors: [MPSVector]?, inputVelocityVectors: [MPSVector]?, resultState: MPSCNNNormalizationGammaAndBetaState)
method · iOS 13.0+encode
TypeScriptencodeCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBuffer: SDKHandle, batchNormalizationState: MPSCNNBatchNormalizationState, inputMomentumVectors: Array<MPSVector>, inputVelocityVectors: Array<MPSVector>, maximumVelocityVectors: (Array<MPSVector>) | null, resultState: MPSCNNNormalizationGammaAndBetaState): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, batchNormalizationState: MPSCNNBatchNormalizationState, inputMomentumVectors: [MPSVector], inputVelocityVectors: [MPSVector], maximumVelocityVectors: [MPSVector]?, resultState: MPSCNNNormalizationGammaAndBetaState)
method · iOS 12.0+encode
TypeScriptencodeCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsResultState(commandBuffer: SDKHandle, batchNormalizationState: MPSCNNBatchNormalizationState, inputMomentumVectors: (Array<MPSVector>) | null, inputVelocityVectors: (Array<MPSVector>) | null, resultState: MPSCNNNormalizationGammaAndBetaState): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, batchNormalizationState: MPSCNNBatchNormalizationState, inputMomentumVectors: [MPSVector]?, inputVelocityVectors: [MPSVector]?, resultState: MPSCNNNormalizationGammaAndBetaState)
method · iOS 13.0+encode
TypeScriptencodeCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBuffer: SDKHandle, convolutionGradientState: MPSCNNConvolutionGradientState, convolutionSourceState: MPSCNNConvolutionWeightsAndBiasesState, inputMomentumVectors: Array<MPSVector>, inputVelocityVectors: Array<MPSVector>, maximumVelocityVectors: (Array<MPSVector>) | null, resultState: MPSCNNConvolutionWeightsAndBiasesState): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, convolutionGradientState: MPSCNNConvolutionGradientState, convolutionSourceState: MPSCNNConvolutionWeightsAndBiasesState, inputMomentumVectors: [MPSVector], inputVelocityVectors: [MPSVector], maximumVelocityVectors: [MPSVector]?, resultState: MPSCNNConvolutionWeightsAndBiasesState)
method · iOS 12.0+encode
TypeScriptencodeCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsResultState(commandBuffer: SDKHandle, convolutionGradientState: MPSCNNConvolutionGradientState, convolutionSourceState: MPSCNNConvolutionWeightsAndBiasesState, inputMomentumVectors: (Array<MPSVector>) | null, inputVelocityVectors: (Array<MPSVector>) | null, resultState: MPSCNNConvolutionWeightsAndBiasesState): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, convolutionGradientState: MPSCNNConvolutionGradientState, convolutionSourceState: MPSCNNConvolutionWeightsAndBiasesState, inputMomentumVectors: [MPSVector]?, inputVelocityVectors: [MPSVector]?, resultState: MPSCNNConvolutionWeightsAndBiasesState)
method · iOS 13.0+encode
TypeScriptencodeCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixMaximumVelocityMatrixResultValuesMatrix(commandBuffer: SDKHandle, inputGradientMatrix: MPSMatrix, inputValuesMatrix: MPSMatrix, inputMomentumMatrix: MPSMatrix, inputVelocityMatrix: MPSMatrix, maximumVelocityMatrix: (MPSMatrix) | null, resultValuesMatrix: MPSMatrix): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, inputGradientMatrix: MPSMatrix, inputValuesMatrix: MPSMatrix, inputMomentumMatrix: MPSMatrix, inputVelocityMatrix: MPSMatrix, maximumVelocityMatrix: MPSMatrix?, resultValuesMatrix: MPSMatrix)
method · iOS 13.0+encode
TypeScriptencodeCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixResultValuesMatrix(commandBuffer: SDKHandle, inputGradientMatrix: MPSMatrix, inputValuesMatrix: MPSMatrix, inputMomentumMatrix: MPSMatrix, inputVelocityMatrix: MPSMatrix, resultValuesMatrix: MPSMatrix): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, inputGradientMatrix: MPSMatrix, inputValuesMatrix: MPSMatrix, inputMomentumMatrix: MPSMatrix, inputVelocityMatrix: MPSMatrix, resultValuesMatrix: MPSMatrix)
method · iOS 13.0+encode
TypeScriptencodeCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorMaximumVelocityVectorResultValuesVector(commandBuffer: SDKHandle, inputGradientVector: MPSVector, inputValuesVector: MPSVector, inputMomentumVector: MPSVector, inputVelocityVector: MPSVector, maximumVelocityVector: (MPSVector) | null, resultValuesVector: MPSVector): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, inputGradientVector: MPSVector, inputValuesVector: MPSVector, inputMomentumVector: MPSVector, inputVelocityVector: MPSVector, maximumVelocityVector: MPSVector?, resultValuesVector: MPSVector)
method · iOS 12.0+encode
TypeScriptencodeCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorResultValuesVector(commandBuffer: SDKHandle, inputGradientVector: MPSVector, inputValuesVector: MPSVector, inputMomentumVector: MPSVector, inputVelocityVector: MPSVector, resultValuesVector: MPSVector): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, inputGradientVector: MPSVector, inputValuesVector: MPSVector, inputMomentumVector: MPSVector, inputVelocityVector: MPSVector, resultValuesVector: MPSVector)
init · iOS 12.0+init
TypeScriptstatic initDeviceBeta1Beta2EpsilonTimeStepOptimizerDescriptor(device: SDKHandle, beta1: number, beta2: number, epsilon: number, timeStep: number, optimizerDescriptor: MPSNNOptimizerDescriptor): MPSNNOptimizerAdam
Swift declarationinit(device: any MTLDevice, beta1: Double, beta2: Double, epsilon: Float, timeStep: Int, optimizerDescriptor: MPSNNOptimizerDescriptor)
init · iOS 12.0+init
TypeScriptstatic initDeviceLearningRate(device: SDKHandle, learningRate: number): MPSNNOptimizerAdam
Swift declarationinit(device: any MTLDevice, learningRate: Float)
get · iOS 12.0+beta1
TypeScriptget beta1(): number
Swift declarationvar beta1: Double { get }
get · iOS 12.0+beta2
TypeScriptget beta2(): number
Swift declarationvar beta2: Double { get }
get · iOS 12.0+epsilon
TypeScriptget epsilon(): number
Swift declarationvar epsilon: Float { get }
get · iOS 12.0+timeStep
TypeScriptget timeStep(): number
Swift declarationvar timeStep: Int { get set }
set · iOS 12.0+timeStep
TypeScriptset timeStep(value: number)
Swift declarationvar timeStep: Int { get set }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSNNOptimizerAdam.init()
inherited init: cannot prove legal (class declares 2 custom initializers)
All MetalPerformanceShaders types →