onnxruntime/docs/get-started/with-obj-c.md
Faith Xu 6c8c8a9b12
[Docs] Update CUDA/TRT versions and menu format fixes (#9317)
* update cuda/trt versions

* update API doc links

* remove api doc parentage

* fix menu

* fix broken links

* open api links in new window
2021-10-14 11:28:17 -07:00

1.1 KiB

title parent nav_order
Objective-C Get Started 8

Get started with ORT for Objective-C

{: .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.