ios-onnxruntime / README.md
w11wo's picture
Updated ONNX Runtime Checkout and Disabled Reduced Operator Type
cfb444a
|
raw
history blame
No virus
1.22 kB
---
license: apache-2.0
---
This repo contains pre-built static onnxruntime libs for iOS using the following
commit:
```
commit e1ca8ee6d4a188f01efd4083d6f4273a3ef901aa (HEAD -> main, github/main)
Author: Randy Shuai <[email protected]>
Date: 2023-07-16 16:51:40 -0700
```
Please see
https://github.com/k2-fsa/sherpa-onnx
for its usage.
# How to build xcframework
```bash
git clone https://github.com/microsoft/onnxruntime
cd onnxruntime
cp ../create-custom-ops-config.sh .
cp ../create-xcframework.sh .
cp ../run-ios-arm64.sh .
cp ../run-ios-simulator-arm64.sh .
cp ../run-ios-simulator-os64.sh .
./create-custom-ops-config.sh
./run-ios-arm64.sh
./run-ios-simulator-arm64.sh
./run-ios-simulator-os64.sh
./create-xcframework.sh
```
You should see the following content:
```bash
ios-onnxruntime fangjun$ tree onnxruntime.xcframework/
onnxruntime.xcframework/
β”œβ”€β”€ Headers
β”‚Β Β  β”œβ”€β”€ cpu_provider_factory.h
β”‚Β Β  β”œβ”€β”€ onnxruntime_c_api.h
β”‚Β Β  β”œβ”€β”€ onnxruntime_cxx_api.h
β”‚Β Β  └── onnxruntime_cxx_inline.h
β”œβ”€β”€ Info.plist
β”œβ”€β”€ ios-arm64
β”‚Β Β  └── onnxruntime.a
└── ios-arm64_x86_64-simulator
└── onnxruntime.a
3 directories, 7 files
```