Share via


MLCLossLayer.CreateMeanSquaredErrorLoss Method

Definition

Overloads

CreateMeanSquaredErrorLoss(MLCReductionType, MLCTensor)

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

Parameters

reductionType
MLCReductionType
weights
MLCTensor

Returns

Attributes

Applies to

CreateMeanSquaredErrorLoss(MLCReductionType, Single)

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

Parameters

reductionType
MLCReductionType
weight
Single

Returns

Attributes

Applies to