-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved TFLite build module into its own file. Worked on README.
- Loading branch information
1 parent
47ec758
commit a5f319e
Showing
5 changed files
with
55 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<application> | ||
<id>org.tensorflow.lite.examples.mnist</id> | ||
<name>TensorFlow Lite demo</name> | ||
<summary>Example application using the TensorFlow Lite machine learning library.</summary> | ||
<url type="homepage">https://github.com/albert-tomanek/tflite-demo</url> | ||
<metadata_license>CC0-1.0</metadata_license> | ||
</application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# When using this module, the following needs to be added to the manifest: | ||
# | ||
# add-build-extensions: | ||
# - org.freedesktop.Sdk.Extension.bazel | ||
# build-options: | ||
# append-path: /usr/lib/sdk/bazel/bin | ||
# | ||
|
||
name: tflite | ||
build-options: | ||
build-args: | ||
- --share=network # Bazel downloads some things when building tflite. Also, build.sh uses `git clone` to download the latest tensorflow. | ||
buildsystem: simple | ||
build-commands: | ||
- pip3 install pip numpy wheel --prefix=/app # Dunno why these are required by bazel to build a C binary 🤷 https://www.tensorflow.org/install/source | ||
- pip3 install keras_preprocessing --no-deps --prefix=/app | ||
- ./build.sh | ||
- rm -r package/DEBIAN # The build script is intended to create a debian package. We don't need package metadata so we remove it. | ||
- mv package/usr/lib package/ # Flatpak apps seem to have libraries in /app/lib rather than /app/user/lib | ||
- cp -RT package/ ${FLATPAK_DEST}/ # Merge directory structure from the debian package into the runtime (and build..? :-/) environment (`package/` contains directories like usr/, lib/, etc.) | ||
sources: | ||
- type: git | ||
url: https://github.com/albert-tomanek/tflite-package |