<!--
{
  "documentType" : "article",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/applying-filters",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Applying Filters"
}
-->

# Applying Filters

## Topics

### Forward Propagation Functions

[`func BNNSFilterApply(BNNSFilter?, UnsafeRawPointer, UnsafeMutableRawPointer) -> Int32`](/documentation/Accelerate/BNNSFilterApply(_:_:_:))

Applies a filter to an input, writing the result to a specified output.

[`func BNNSFilterApplyBatch(BNNSFilter?, Int, UnsafeRawPointer, Int, UnsafeMutableRawPointer, Int) -> Int32`](/documentation/Accelerate/BNNSFilterApplyBatch(_:_:_:_:_:_:))

Applies a filter to a set of input objects, writing the result to a set of output objects.

[`func BNNSFilterApplyTwoInput(BNNSFilter?, UnsafeRawPointer, UnsafeRawPointer, UnsafeMutableRawPointer) -> Int32`](/documentation/Accelerate/BNNSFilterApplyTwoInput(_:_:_:_:))

Applies a filter to a pair of inputs, writing the result to a specified output.

[`func BNNSFilterApplyTwoInputBatch(BNNSFilter?, Int, UnsafeRawPointer, Int, UnsafeRawPointer, Int, UnsafeMutableRawPointer, Int) -> Int32`](/documentation/Accelerate/BNNSFilterApplyTwoInputBatch(_:_:_:_:_:_:_:_:))

Applies a filter to a set of input object pairs, writing the result to a set of output objects.

### Backpropagation Functions

[`func BNNSFilterApplyBackwardBatch(BNNSFilter?, Int, UnsafeRawPointer?, Int, UnsafeMutablePointer<BNNSNDArrayDescriptor>?, Int, UnsafeRawPointer?, Int, UnsafePointer<BNNSNDArrayDescriptor>, Int, UnsafeMutablePointer<BNNSNDArrayDescriptor>?, UnsafeMutablePointer<BNNSNDArrayDescriptor>?) -> Int32`](/documentation/Accelerate/BNNSFilterApplyBackwardBatch(_:_:_:_:_:_:_:_:_:_:_:_:))

Applies a filter backward to generate input delta, weights delta and bias delta.

[`func BNNSFilterApplyBackwardTwoInputBatch(BNNSFilter?, Int, UnsafeRawPointer?, Int, UnsafeMutablePointer<BNNSNDArrayDescriptor>?, Int, UnsafeRawPointer?, Int, UnsafeMutablePointer<BNNSNDArrayDescriptor>?, Int, UnsafeRawPointer?, Int, UnsafePointer<BNNSNDArrayDescriptor>, Int, UnsafeMutablePointer<BNNSNDArrayDescriptor>?, UnsafeMutablePointer<BNNSNDArrayDescriptor>?) -> Int32`](/documentation/Accelerate/BNNSFilterApplyBackwardTwoInputBatch(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:))

Applies a filter backward to generate input deltas, weights delta and bias delta.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)