Share via


MPSGraph_MPSGraphGradientOps.Gradients Method

Definition

[Foundation.Export("gradientForPrimaryTensor:withTensors:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor> Gradients(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor of, MetalPerformanceShadersGraph.MPSGraphTensor[] with, string? name);
[<Foundation.Export("gradientForPrimaryTensor:withTensors:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Gradients : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor[] * string -> Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphTensor>

Parameters

This
MPSGraph
name
String

Returns

Attributes

Applies to