onnxruntime/docs/reference/api/objectivec-api.md
Faith Xu d8bb0da9f9
Documentation: fix link, nav, minor update (#8612)
* fix links

* update order of api nav

* update execution provider how to, original PR #6266
2021-08-09 20:31:51 -07:00

1.1 KiB

title parent grand_parent nav_order
Objective-C API API docs Reference 6

ONNX Runtime Objective-C API

{: .no_toc }

ONNX Runtime provides an Objective-C API for running ONNX models on iOS devices.

Contents

{: .no_toc }

  • TOC placeholder {:toc}

Supported Versions

iOS 11+.

Builds

The artifacts are published to CocoaPods.

Artifact Description Supported Platforms
onnxruntime-mobile-objc CPU and CoreML iOS

Refer to the installation instructions.

Swift Usage

The Objective-C API can be called from Swift code. To enable this, use a bridging header (more info here) that imports the ORT Objective-C API header.

// In the bridging header, import the ORT Objective-C API header.
#import <onnxruntime.h>

API Reference

Objective-C API Reference

Samples

See the iOS examples here.