init(reductionType:dimensions:)
Creates a reduction layer using the reduction type and dimensions you specify.
Declaration
convenience init?(reductionType: MLCReductionType, dimensions: [Int])Parameters
- reductionType:
The reduction type.
- dimensions:
The dimensions to perform the reduction operation on.