Share via


MLCLossLayer.CreateHingeLoss Method

Definition

Overloads

CreateHingeLoss(MLCReductionType, MLCTensor)

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

Parameters

reductionType
MLCReductionType
weights
MLCTensor

Returns

Attributes

Applies to

CreateHingeLoss(MLCReductionType, Single)

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

Parameters

reductionType
MLCReductionType
weight
Single

Returns

Attributes

Applies to