MLCLossLayer.CreateSigmoidCrossEntropyLoss 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
| Name | Description |
|---|---|
| CreateSigmoidCrossEntropyLoss(MLCReductionType, Single, MLCTensor) | |
| CreateSigmoidCrossEntropyLoss(MLCReductionType, Single, Single) |
CreateSigmoidCrossEntropyLoss(MLCReductionType, Single, MLCTensor)
[Foundation.Export("sigmoidCrossEntropyLossWithReductionType:labelSmoothing:weights:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossLayer CreateSigmoidCrossEntropyLoss(MLCompute.MLCReductionType reductionType, float labelSmoothing, MLCompute.MLCTensor? weights);
[<Foundation.Export("sigmoidCrossEntropyLossWithReductionType:labelSmoothing:weights:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateSigmoidCrossEntropyLoss : MLCompute.MLCReductionType * single * MLCompute.MLCTensor -> MLCompute.MLCLossLayer
Parameters
- reductionType
- MLCReductionType
- labelSmoothing
- Single
- weights
- MLCTensor
Returns
- Attributes
Applies to
CreateSigmoidCrossEntropyLoss(MLCReductionType, Single, Single)
[Foundation.Export("sigmoidCrossEntropyLossWithReductionType:labelSmoothing:weight:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossLayer CreateSigmoidCrossEntropyLoss(MLCompute.MLCReductionType reductionType, float labelSmoothing, float weight);
[<Foundation.Export("sigmoidCrossEntropyLossWithReductionType:labelSmoothing:weight:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateSigmoidCrossEntropyLoss : MLCompute.MLCReductionType * single * single -> MLCompute.MLCLossLayer
Parameters
- reductionType
- MLCReductionType
- labelSmoothing
- Single
- weight
- Single
Returns
- Attributes