Update tflite demo with bom file
This commit is contained in:
parent
3684560683
commit
8b2c99cafd
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
9
demos/tensorflow_lite/tflite.yaml
Normal file
9
demos/tensorflow_lite/tflite.yaml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user