|
|
@@ -1,5 +1,6 @@
|
|
|
#!/bin/bash
|
|
|
|
|
|
+set -e
|
|
|
|
|
|
root=$(cd $(dirname ${0})/..; pwd)
|
|
|
build=${root}/build
|
|
|
@@ -65,8 +66,7 @@ install() {
|
|
|
|
|
|
schema() {
|
|
|
bold "tflite schema"
|
|
|
- cp ${third_party}/tensorflow/tensorflow/lite/schema/schema.fbs ${tools}/tflite.schema.fbs
|
|
|
- sed -i 's/namespace tflite\;/namespace tflite_schema\;/' ${tools}/tflite.schema.fbs
|
|
|
+ sed 's/namespace tflite;/namespace tflite_schema;/g' <${third_party}/tensorflow/tensorflow/lite/schema/schema.fbs >${tools}/tflite.schema.fbs
|
|
|
${third_party}/flatbuffers/flatc --no-js-exports --js ${tools}/tflite.schema.fbs
|
|
|
mv ./tflite.schema_generated.js ${src}/tflite-schema.js
|
|
|
rm ${tools}/tflite.schema.fbs
|