---
title: "BNNSDirectApplyReduction(_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/bnnsdirectapplyreduction(_:_:)"
---

# BNNSDirectApplyReduction(_:_:)

Applies a reduction operation directly to an input tensor.

## Declaration

```swift
func BNNSDirectApplyReduction(_ layer_params: UnsafePointer<BNNSLayerParametersReduction>, _ filter_params: UnsafePointer<BNNSFilterParameters>?) -> Int32
```

## Parameters

- `layer_params`: Layer parameters.
- `filter_params`: Filter runtime parameters.

## See Also

### Reduction layers

- [BNNS.ReductionLayer](accelerate/bnns/reductionlayer.md)
- [applyReduction(_:input:output:weights:filterParameters:)](accelerate/bnns/applyreduction(_:input:output:weights:filterparameters:).md)
- [BNNSReduceFunction](accelerate/bnnsreducefunction.md)
- [BNNSLayerParametersReduction](accelerate/bnnslayerparametersreduction.md)
- [BNNSFilterCreateLayerReduction(_:_:)](accelerate/bnnsfiltercreatelayerreduction(_:_:).md)
