Share via


MPSGraph_MPSGraphOptimizerOps.StochasticGradientDescent Method

Definition

[Foundation.Export("stochasticGradientDescentWithLearningRateTensor:valuesTensor:gradientTensor:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor StochasticGradientDescent(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor learningRate, MetalPerformanceShadersGraph.MPSGraphTensor values, MetalPerformanceShadersGraph.MPSGraphTensor gradient, string? name);
[<Foundation.Export("stochasticGradientDescentWithLearningRateTensor:valuesTensor:gradientTensor:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member StochasticGradientDescent : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
learningRate
MPSGraphTensor
gradient
MPSGraphTensor
name
String

Returns

Attributes

Applies to