https://github.com/fuzhenxin/tensorflow-lite-select-tf-ops-aar
https://github.com/fuzhenxin/tensorflow-lite-select-tf-ops-aar
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fuzhenxin/tensorflow-lite-select-tf-ops-aar
- Owner: fuzhenxin
- Created: 2020-06-25T15:30:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-25T16:43:58.000Z (almost 5 years ago)
- Last Synced: 2024-12-26T21:08:49.377Z (4 months ago)
- Size: 70.7 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tensorflow-Lite-Select-TF-Ops-AAR
This repo contains the tensorflow-lite.aar and tensorflow-lite-select-tf-ops.aar (version 2.3).The SSE4.1 and SSE4.2 are disabled to avoid the following error when running on android emulator which does not support them:
```
cpu_feature_guard.cc:36 The TensorFlow library was compiled to use SSE instructions, but these aren't available on your machine.
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfffffff4 in tid xxx (xxx), pid xxx (xxx)
```The budding command:
```
android update sdk --no-ui -a --filter tools,platform-tools,android-29,build-tools-29.0.2
bazel build -c opt --copt=-mno-sse4.1 --copt=-mno-sse4.2 --fat_apk_cpu=x86,x86_64,arm64-v8a,armeabi-v7a \
--host_crosstool_top=@bazel_tools//tools/cpp:toolchain \
//tensorflow/lite/java:tensorflow-lite[-select-tf-ops]
```