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