Contents

init(descriptor:weights:)

Creates a loss layer with the descriptor and weights you specify.

Declaration

convenience init(descriptor lossDescriptor: MLCLossDescriptor, weights: MLCTensor)

Parameters

  • lossDescriptor:

    An object you use to configure the loss layer.

  • weights:

    The loss label weights tensor.

See Also

Creating Loss Layers with Descriptors