Share via


MLCLossLayer.CreateCategoricalCrossEntropyLoss Method

Definition

Overloads

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

Applies to