Share via


MLCLossLayer.CreateMeanAbsoluteErrorLoss Method

Definition

Overloads

CreateMeanAbsoluteErrorLoss(MLCReductionType, MLCTensor)

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

Parameters

reductionType
MLCReductionType
weights
MLCTensor

Returns

Attributes

Applies to

CreateMeanAbsoluteErrorLoss(MLCReductionType, Single)

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

Parameters

reductionType
MLCReductionType
weight
Single

Returns

Attributes

Applies to