Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mhp23 patch 1 #23

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ A high-performance [TensorFlow Lite](https://www.tensorflow.org/lite) library fo
```
This allows you to drop `.tflite` files into your app and swap them out at runtime without having to rebuild anything! 🔥
3. (Optional) If you want to enable the GPU Delegate, see ["Using GPU Delegates"](#using-gpu-delegates) down below.
4. Run your app (`yarn android` / `npx pod-install && yarn ios`)
4. Run your app:
- For Android: `yarn android`
- For iOS:
- If you're using Apple silicon (M1, M2, or M3), Since the current stable version of TensorFlow Lite doesn't support the `arm64` simulators, you'll need to use the following command to run the app on `x86_64` architecture: `npx pod-install && yarn ios --destination arch=x86_64`
- Otherwise, use this command: `npx pod-install && yarn ios`

## Usage

Expand Down
1 change: 1 addition & 0 deletions react-native-fast-tflite.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Pod::Spec.new do |s|
s.source_files = "ios/**/*.{h,m,mm}", "cpp/**/*.{hpp,cpp,c,h}"

s.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64 i386',
'GCC_PREPROCESSOR_DEFINITIONS' => "$(inherited) FAST_TFLITE_ENABLE_CORE_ML=#{enableCoreMLDelegate}",
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
}
Expand Down
Loading