MPSGraph_MPSGraphLossOps.SoftMaxCrossEntropy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[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
- source
- MPSGraphTensor
- labels
- MPSGraphTensor
- axis
-
IntPtr
nativeint
- reductionType
- MPSGraphLossReductionType
- name
- String
Returns
- Attributes