Share via


MPSGraph_MPSGraphLossOps.SoftMaxCrossEntropy Method

Definition

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

Parameters

This
MPSGraph
axis
IntPtr

nativeint

name
String

Returns

Attributes

Applies to