Share via


MLCLossLayer.CreateHuberLoss Method

Definition

Overloads

CreateHuberLoss(MLCReductionType, Single, Single)

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

Parameters

reductionType
MLCReductionType
delta
Single
weight
Single

Returns

Attributes

Applies to

CreateHuberLoss(MLCReductionType, Single, MLCTensor)

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

Parameters

reductionType
MLCReductionType
delta
Single
weights
MLCTensor

Returns

Attributes

Applies to