w11wo/ios-onnxruntime

🤗 Hugging Face 来源apache-2.01.1 GBother✓ 5 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo w11wo/ios-onnxruntime ./model-folder
需要做种者 →

This repo contains pre-built static onnxruntime libs for iOS using the following commit:

commit e1ca8ee6d4a188f01efd4083d6f4273a3ef901aa (HEAD -> main, github/main)
Author: Randy Shuai <rashuai@microsoft.com>
Date:   2023-07-16 16:51:40 -0700

Please see https://github.com/k2-fsa/sherpa-onnx for its usage.

How to build xcframework

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:

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