Contents

meanSquaredError(reductionType:weights:)

Creates a mean squared loss layer with the reduction type and weights you specify.

Declaration

class func meanSquaredError(reductionType: MLCReductionType, weights: MLCTensor?) -> Self

Parameters

  • reductionType:

    The reduction operation type.

  • weights:

    The loss label weights tensor.

Return Value

A mean squared loss layer.

See Also

Creating Loss Layers with Tensor Weights