init(input:output:lossFunction:lossReduction:filterParameters:)
Returns a new loss layer.
Declaration
convenience init?(input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, lossFunction: BNNS.LossFunction, lossReduction: BNNS.LossReduction, filterParameters: BNNSFilterParameters? = nil)Parameters
- input:
The descriptor of the input.
- output:
The descriptor of the output.
- lossFunction:
The function that’s used to compute the loss.
- lossReduction:
The function that’s used to reduce the computed loss.
- filterParameters:
The filter runtime parameters.