Apple introduced BNNSGraphBuilder at WWDC 2025, a new Swift API enhancing machine learning inference on iOS devices.
BNNSGraphBuilder offers native Swift integration and runtime flexibility, allowing developers to write ML graphs directly in Swift without additional files or compilation steps.
The API includes advanced features like strong typing, Swift-native slicing operations, and comprehensive support for various mathematical, data manipulation, and comparison operations.
BNNSGraphBuilder is ideal for small custom ML models, preprocessing pipelines, real-time audio/image processing, and maintaining code clarity while optimizing performance for iOS developers.