Contents

log(reductionType:epsilon:weights:)

Creates a log loss layer with the reduction type, epsilon, and weights you specify.

Declaration

class func log(reductionType: MLCReductionType, epsilon: Float, weights: MLCTensor?) -> Self

Parameters

  • reductionType:

    The reduction operation type.

  • epsilon:

    The epsilon value.

  • weights:

    The loss label weights tensor.

Return Value

A log loss layer.

See Also

Creating Loss Layers with Tensor Weights