MLCLossLayer.CreateSoftmaxCrossEntropyLoss 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.
Overloads
| Name | Description |
|---|---|
| CreateSoftmaxCrossEntropyLoss(MLCReductionType, Single, UIntPtr, MLCTensor) | |
| CreateSoftmaxCrossEntropyLoss(MLCReductionType, Single, UIntPtr, Single) |
CreateSoftmaxCrossEntropyLoss(MLCReductionType, Single, UIntPtr, MLCTensor)
[Foundation.Export("softmaxCrossEntropyLossWithReductionType:labelSmoothing:classCount:weights:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossLayer CreateSoftmaxCrossEntropyLoss(MLCompute.MLCReductionType reductionType, float labelSmoothing, UIntPtr classCount, MLCompute.MLCTensor? weights);
[<Foundation.Export("softmaxCrossEntropyLossWithReductionType:labelSmoothing:classCount:weights:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateSoftmaxCrossEntropyLoss : MLCompute.MLCReductionType * single * unativeint * MLCompute.MLCTensor -> MLCompute.MLCLossLayer
Parameters
- reductionType
- MLCReductionType
- labelSmoothing
- Single
- classCount
-
UIntPtr
unativeint
- weights
- MLCTensor
Returns
- Attributes
Applies to
CreateSoftmaxCrossEntropyLoss(MLCReductionType, Single, UIntPtr, Single)
[Foundation.Export("softmaxCrossEntropyLossWithReductionType:labelSmoothing:classCount:weight:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossLayer CreateSoftmaxCrossEntropyLoss(MLCompute.MLCReductionType reductionType, float labelSmoothing, UIntPtr classCount, float weight);
[<Foundation.Export("softmaxCrossEntropyLossWithReductionType:labelSmoothing:classCount:weight:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateSoftmaxCrossEntropyLoss : MLCompute.MLCReductionType * single * unativeint * single -> MLCompute.MLCLossLayer
Parameters
- reductionType
- MLCReductionType
- labelSmoothing
- Single
- classCount
-
UIntPtr
unativeint
- weight
- Single
Returns
- Attributes