Contents

huberLoss(reductionType:delta:weights:)

Creates a huber loss layer with the reduction type, delta, and weights you specify.

Declaration

class func huberLoss(reductionType: MLCReductionType, delta: Float, weights: MLCTensor?) -> Self

Parameters

  • reductionType:

    The reduction operation type.

  • delta:

    The delta value.

  • weights:

    The loss label weights tensor.

Return Value

A huber loss layer.

See Also

Creating Loss Layers with Tensor Weights