MLCLossDescriptor.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Create(MLCLossType, MLCReductionType)
[Foundation.Export("descriptorWithType:reductionType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossDescriptor Create(MLCompute.MLCLossType lossType, MLCompute.MLCReductionType reductionType);
[<Foundation.Export("descriptorWithType:reductionType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MLCompute.MLCLossType * MLCompute.MLCReductionType -> MLCompute.MLCLossDescriptor
Parameters
- lossType
- MLCLossType
- reductionType
- MLCReductionType
Returns
- Attributes
Applies to
Create(MLCLossType, MLCReductionType, Single)
[Foundation.Export("descriptorWithType:reductionType:weight:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossDescriptor Create(MLCompute.MLCLossType lossType, MLCompute.MLCReductionType reductionType, float weight);
[<Foundation.Export("descriptorWithType:reductionType:weight:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MLCompute.MLCLossType * MLCompute.MLCReductionType * single -> MLCompute.MLCLossDescriptor
Parameters
- lossType
- MLCLossType
- reductionType
- MLCReductionType
- weight
- Single
Returns
- Attributes
Applies to
Create(MLCLossType, MLCReductionType, Single, Single, UIntPtr)
[Foundation.Export("descriptorWithType:reductionType:weight:labelSmoothing:classCount:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossDescriptor Create(MLCompute.MLCLossType lossType, MLCompute.MLCReductionType reductionType, float weight, float labelSmoothing, UIntPtr classCount);
[<Foundation.Export("descriptorWithType:reductionType:weight:labelSmoothing:classCount:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MLCompute.MLCLossType * MLCompute.MLCReductionType * single * single * unativeint -> MLCompute.MLCLossDescriptor
Parameters
- lossType
- MLCLossType
- reductionType
- MLCReductionType
- weight
- Single
- labelSmoothing
- Single
- classCount
-
UIntPtr
unativeint
Returns
- Attributes
Applies to
Create(MLCLossType, MLCReductionType, Single, Single, UIntPtr, Single, Single)
[Foundation.Export("descriptorWithType:reductionType:weight:labelSmoothing:classCount:epsilon:delta:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossDescriptor Create(MLCompute.MLCLossType lossType, MLCompute.MLCReductionType reductionType, float weight, float labelSmoothing, UIntPtr classCount, float epsilon, float delta);
[<Foundation.Export("descriptorWithType:reductionType:weight:labelSmoothing:classCount:epsilon:delta:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MLCompute.MLCLossType * MLCompute.MLCReductionType * single * single * unativeint * single * single -> MLCompute.MLCLossDescriptor
Parameters
- lossType
- MLCLossType
- reductionType
- MLCReductionType
- weight
- Single
- labelSmoothing
- Single
- classCount
-
UIntPtr
unativeint
- epsilon
- Single
- delta
- Single
Returns
- Attributes