Share via


MLCLossLayer.CreateLogLoss Method

Definition

Overloads

CreateLogLoss(MLCReductionType, Single, MLCTensor)

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

Parameters

reductionType
MLCReductionType
epsilon
Single
weights
MLCTensor

Returns

Attributes

Applies to

CreateLogLoss(MLCReductionType, Single, Single)

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

Parameters

reductionType
MLCReductionType
epsilon
Single
weight
Single

Returns

Attributes

Applies to