Share via


MLCLossLayer.CreateSigmoidCrossEntropyLoss Method

Definition

Overloads

CreateSigmoidCrossEntropyLoss(MLCReductionType, Single, MLCTensor)

[Foundation.Export("sigmoidCrossEntropyLossWithReductionType:labelSmoothing:weights:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossLayer CreateSigmoidCrossEntropyLoss(MLCompute.MLCReductionType reductionType, float labelSmoothing, MLCompute.MLCTensor? weights);
[<Foundation.Export("sigmoidCrossEntropyLossWithReductionType:labelSmoothing:weights:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateSigmoidCrossEntropyLoss : MLCompute.MLCReductionType * single * MLCompute.MLCTensor -> MLCompute.MLCLossLayer

Parameters

reductionType
MLCReductionType
labelSmoothing
Single
weights
MLCTensor

Returns

Attributes

Applies to

CreateSigmoidCrossEntropyLoss(MLCReductionType, Single, Single)

[Foundation.Export("sigmoidCrossEntropyLossWithReductionType:labelSmoothing:weight:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossLayer CreateSigmoidCrossEntropyLoss(MLCompute.MLCReductionType reductionType, float labelSmoothing, float weight);
[<Foundation.Export("sigmoidCrossEntropyLossWithReductionType:labelSmoothing:weight:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateSigmoidCrossEntropyLoss : MLCompute.MLCReductionType * single * single -> MLCompute.MLCLossLayer

Parameters

reductionType
MLCReductionType
labelSmoothing
Single
weight
Single

Returns

Attributes

Applies to