Contents

sigmoidCrossEntropy(reductionType:labelSmoothing:weights:)

Creates a sigmoid cross entropy loss layer with the reduction type, label smoothing, and weights you specify.

Declaration

class func sigmoidCrossEntropy(reductionType: MLCReductionType, labelSmoothing: Float, weights: MLCTensor?) -> Self

Parameters

  • reductionType:

    The reduction operation type.

  • labelSmoothing:

    Label smoothing value.

  • weights:

    The loss label weights tensor.

Return Value

A sigmoid cross entropy loss layer.

See Also

Creating Loss Layers with Tensor Weights