One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSNNOptimizerStochasticGradientDescent

class · iOS 12.0+ · SDK 27.1

class MPSNNOptimizerStochasticGradientDescent

Members (11)

method · iOS 12.0+

encode

TypeScript
encodeCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsResultState(commandBuffer: SDKHandle, batchNormalizationGradientState: MPSCNNBatchNormalizationState, batchNormalizationSourceState: MPSCNNBatchNormalizationState, inputMomentumVectors: (Array<MPSVector>) | null, resultState: MPSCNNNormalizationGammaAndBetaState): void
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, batchNormalizationGradientState: MPSCNNBatchNormalizationState, batchNormalizationSourceState: MPSCNNBatchNormalizationState, inputMomentumVectors: [MPSVector]?, resultState: MPSCNNNormalizationGammaAndBetaState)
method · iOS 12.0+

encode

TypeScript
encodeCommandBufferBatchNormalizationStateInputMomentumVectorsResultState(commandBuffer: SDKHandle, batchNormalizationState: MPSCNNBatchNormalizationState, inputMomentumVectors: (Array<MPSVector>) | null, resultState: MPSCNNNormalizationGammaAndBetaState): void
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, batchNormalizationState: MPSCNNBatchNormalizationState, inputMomentumVectors: [MPSVector]?, resultState: MPSCNNNormalizationGammaAndBetaState)
method · iOS 12.0+

encode

TypeScript
encodeCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsResultState(commandBuffer: SDKHandle, convolutionGradientState: MPSCNNConvolutionGradientState, convolutionSourceState: MPSCNNConvolutionWeightsAndBiasesState, inputMomentumVectors: (Array<MPSVector>) | null, resultState: MPSCNNConvolutionWeightsAndBiasesState): void
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, convolutionGradientState: MPSCNNConvolutionGradientState, convolutionSourceState: MPSCNNConvolutionWeightsAndBiasesState, inputMomentumVectors: [MPSVector]?, resultState: MPSCNNConvolutionWeightsAndBiasesState)
method · iOS 13.0+

encode

TypeScript
encodeCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixResultValuesMatrix(commandBuffer: SDKHandle, inputGradientMatrix: MPSMatrix, inputValuesMatrix: MPSMatrix, inputMomentumMatrix: (MPSMatrix) | null, resultValuesMatrix: MPSMatrix): void
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, inputGradientMatrix: MPSMatrix, inputValuesMatrix: MPSMatrix, inputMomentumMatrix: MPSMatrix?, resultValuesMatrix: MPSMatrix)
method · iOS 12.0+

encode

TypeScript
encodeCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorResultValuesVector(commandBuffer: SDKHandle, inputGradientVector: MPSVector, inputValuesVector: MPSVector, inputMomentumVector: (MPSVector) | null, resultValuesVector: MPSVector): void
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, inputGradientVector: MPSVector, inputValuesVector: MPSVector, inputMomentumVector: MPSVector?, resultValuesVector: MPSVector)
init · iOS 12.0+

init

TypeScript
static initDeviceLearningRate(device: SDKHandle, learningRate: number): MPSNNOptimizerStochasticGradientDescent
Swift declaration
init(device: any MTLDevice, learningRate: Float)
init · iOS 14.0+

init

TypeScript
static initDeviceMomentumScaleUseNesterovMomentumOptimizerDescriptor(device: SDKHandle, momentumScale: number, useNesterovMomentum: boolean, optimizerDescriptor: MPSNNOptimizerDescriptor): MPSNNOptimizerStochasticGradientDescent
Swift declaration
init(device: any MTLDevice, momentumScale: Float, useNesterovMomentum: Bool, optimizerDescriptor: MPSNNOptimizerDescriptor)
init · iOS 12.0+

init

TypeScript
static initDeviceMomentumScaleUseNestrovMomentumOptimizerDescriptor(device: SDKHandle, momentumScale: number, useNestrovMomentum: boolean, optimizerDescriptor: MPSNNOptimizerDescriptor): MPSNNOptimizerStochasticGradientDescent
Swift declaration
init(device: any MTLDevice, momentumScale: Float, useNestrovMomentum: Bool, optimizerDescriptor: MPSNNOptimizerDescriptor)
get · iOS 12.0+

momentumScale

TypeScript
get momentumScale(): number
Swift declaration
var momentumScale: Float { get }
get · iOS 14.0+

useNesterovMomentum

TypeScript
get useNesterovMomentum(): boolean
Swift declaration
var useNesterovMomentum: Bool { get }
get · iOS 12.0+

useNestrovMomentum

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