Update tflite demo with bom file

This commit is contained in:
zongmin.gu 2021-09-26 11:27:39 +08:00 committed by Zongmin.Gu
parent 3684560683
commit 8b2c99cafd
2 changed files with 11 additions and 4 deletions

@ -15,10 +15,8 @@ init_workspace() {
} }
build_occlum() { build_occlum() {
cp ../tensorflow_src/tensorflow/lite/tools/make/gen/linux_x86_64/bin/* image/bin rm -rf image
cp /usr/local/occlum/x86_64-linux-musl/lib/libz.so.1 image/lib copy_bom -f ../tflite.yaml --root image --include-dir /opt/occlum/etc/template;
cp -r ../models image
cp -r ../tensorflow_src/tensorflow/lite/examples/label_image/testdata image
occlum build occlum build
} }

@ -0,0 +1,9 @@
includes:
- base.yaml
targets:
- target: /
copy:
- dirs:
- ../tensorflow_src/tensorflow/lite/tools/make/gen/linux_x86_64/bin
- ../models
- ../tensorflow_src/tensorflow/lite/examples/label_image/testdata