Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tkat0/tensorflow-build
https://github.com/tkat0/tensorflow-build
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tkat0/tensorflow-build
- Owner: tkat0
- Created: 2020-12-15T07:48:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:43:29.000Z (11 months ago)
- Last Synced: 2024-10-10T19:09:07.404Z (about 1 month ago)
- Size: 14.7 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tensorflow-build
build c api.
## Setup
```bash
git clone [email protected]:tensorflow/tensorflow.git
cd tensorflow
git checkout 3727302f03a495b665efda24a845c4b30a7cffe9
``````bash
commit 3727302f03a495b665efda24a845c4b30a7cffe9 (HEAD -> master, origin/master, origin/HEAD)
Author: A. Unique TensorFlower
Date: Sun Dec 13 10:18:02 2020 -0800Removing run_deprecated_v1 and run_v1_only tags on tests for array_ops
PiperOrigin-RevId: 347267934
Change-Id: Id8d1edfa7ff51c1ba3d9fc496d51a981a19c2ba9
```## Build
```bash
docker-compose build androidcd tensorflow
# set manualy
./configure# android: libtensorflowlite_c.so
# config -> see tensorflow/tensorflow/BUILD
bazel build -c opt --config=android_arm64 \
--define tflite_with_xnnpack=true \
//tensorflow/lite/c:tensorflowlite_c# android: libtensorflowlite_gpu_gl.so
bazel build -c opt --config=android_arm64 \
--define tflite_with_xnnpack=true \
//tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_gl.so# x86-linux: libtensorflowlite_c.so
bazel build -c opt --config=linux_x86_64 \
--define tflite_with_xnnpack=true \
//tensorflow/lite/c:tensorflowlite_ccp bazel-out/arm64-v8a-opt/bin/tensorflow/lite/c/libtensorflowlite_c.so ../lib/android
cp bazel-out/arm64-v8a-opt/bin/tensorflow/lite/delegates/gpu/libtensorflowlite_gpu_gl.so ../lib/android
cp bazel-out/k8-opt/bin/tensorflow/lite/c/libtensorflowlite_c.so ../lib/linux
```