Share via


MPSGraph_MPSGraphLossOps.SoftMaxCrossEntropyGradient Method

Definition

[Foundation.Export("softMaxCrossEntropyGradientWithIncomingGradientTensor:sourceTensor:labelsTensor:axis:reductionType:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor SoftMaxCrossEntropyGradient(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor gradientTensor, MetalPerformanceShadersGraph.MPSGraphTensor sourceTensor, MetalPerformanceShadersGraph.MPSGraphTensor labelsTensor, IntPtr axis, MetalPerformanceShadersGraph.MPSGraphLossReductionType reductionType, string? name);
[<Foundation.Export("softMaxCrossEntropyGradientWithIncomingGradientTensor:sourceTensor:labelsTensor:axis:reductionType:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member SoftMaxCrossEntropyGradient : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * nativeint * MetalPerformanceShadersGraph.MPSGraphLossReductionType * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
gradientTensor
MPSGraphTensor
sourceTensor
MPSGraphTensor
labelsTensor
MPSGraphTensor
axis
IntPtr

nativeint

name
String

Returns

Attributes

Applies to