MetalPerformanceShaders · IOS API REFERENCE
MPSNNOptimizerStochasticGradientDescent
class · iOS 12.0+ · SDK 27.1
class MPSNNOptimizerStochasticGradientDescent
Members (11)
method · iOS 12.0+encode
TypeScriptencodeCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsResultState(commandBuffer: SDKHandle, batchNormalizationGradientState: MPSCNNBatchNormalizationState, batchNormalizationSourceState: MPSCNNBatchNormalizationState, inputMomentumVectors: (Array<MPSVector>) | null, resultState: MPSCNNNormalizationGammaAndBetaState): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, batchNormalizationGradientState: MPSCNNBatchNormalizationState, batchNormalizationSourceState: MPSCNNBatchNormalizationState, inputMomentumVectors: [MPSVector]?, resultState: MPSCNNNormalizationGammaAndBetaState)
method · iOS 12.0+encode
TypeScriptencodeCommandBufferBatchNormalizationStateInputMomentumVectorsResultState(commandBuffer: SDKHandle, batchNormalizationState: MPSCNNBatchNormalizationState, inputMomentumVectors: (Array<MPSVector>) | null, resultState: MPSCNNNormalizationGammaAndBetaState): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, batchNormalizationState: MPSCNNBatchNormalizationState, inputMomentumVectors: [MPSVector]?, resultState: MPSCNNNormalizationGammaAndBetaState)
method · iOS 12.0+encode
TypeScriptencodeCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsResultState(commandBuffer: SDKHandle, convolutionGradientState: MPSCNNConvolutionGradientState, convolutionSourceState: MPSCNNConvolutionWeightsAndBiasesState, inputMomentumVectors: (Array<MPSVector>) | null, resultState: MPSCNNConvolutionWeightsAndBiasesState): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, convolutionGradientState: MPSCNNConvolutionGradientState, convolutionSourceState: MPSCNNConvolutionWeightsAndBiasesState, inputMomentumVectors: [MPSVector]?, resultState: MPSCNNConvolutionWeightsAndBiasesState)
method · iOS 13.0+encode
TypeScriptencodeCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixResultValuesMatrix(commandBuffer: SDKHandle, inputGradientMatrix: MPSMatrix, inputValuesMatrix: MPSMatrix, inputMomentumMatrix: (MPSMatrix) | null, resultValuesMatrix: MPSMatrix): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, inputGradientMatrix: MPSMatrix, inputValuesMatrix: MPSMatrix, inputMomentumMatrix: MPSMatrix?, resultValuesMatrix: MPSMatrix)
method · iOS 12.0+encode
TypeScriptencodeCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorResultValuesVector(commandBuffer: SDKHandle, inputGradientVector: MPSVector, inputValuesVector: MPSVector, inputMomentumVector: (MPSVector) | null, resultValuesVector: MPSVector): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, inputGradientVector: MPSVector, inputValuesVector: MPSVector, inputMomentumVector: MPSVector?, resultValuesVector: MPSVector)
init · iOS 12.0+init
TypeScriptstatic initDeviceLearningRate(device: SDKHandle, learningRate: number): MPSNNOptimizerStochasticGradientDescent
Swift declarationinit(device: any MTLDevice, learningRate: Float)
init · iOS 14.0+init
TypeScriptstatic initDeviceMomentumScaleUseNesterovMomentumOptimizerDescriptor(device: SDKHandle, momentumScale: number, useNesterovMomentum: boolean, optimizerDescriptor: MPSNNOptimizerDescriptor): MPSNNOptimizerStochasticGradientDescent
Swift declarationinit(device: any MTLDevice, momentumScale: Float, useNesterovMomentum: Bool, optimizerDescriptor: MPSNNOptimizerDescriptor)
init · iOS 12.0+init
TypeScriptstatic initDeviceMomentumScaleUseNestrovMomentumOptimizerDescriptor(device: SDKHandle, momentumScale: number, useNestrovMomentum: boolean, optimizerDescriptor: MPSNNOptimizerDescriptor): MPSNNOptimizerStochasticGradientDescent
Swift declarationinit(device: any MTLDevice, momentumScale: Float, useNestrovMomentum: Bool, optimizerDescriptor: MPSNNOptimizerDescriptor)
get · iOS 12.0+momentumScale
TypeScriptget momentumScale(): number
Swift declarationvar momentumScale: Float { get }
get · iOS 14.0+useNesterovMomentum
TypeScriptget useNesterovMomentum(): boolean
Swift declarationvar useNesterovMomentum: Bool { get }
get · iOS 12.0+useNestrovMomentum
TypeScriptget useNestrovMomentum(): boolean
Swift declarationvar useNestrovMomentum: Bool { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSNNOptimizerStochasticGradientDescent.init()
inherited init: cannot prove legal (class declares 3 custom initializers)
All MetalPerformanceShaders types →