From c80dfdaf62465341e8826466f89d11a8f5f0ffdc Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Thu, 12 Sep 2019 12:37:10 +0100 Subject: [PATCH] TensorFlow tidyup --- libs/tensorflow/README.md | 8 +++++--- make/misc/tensorflow.make | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/tensorflow/README.md b/libs/tensorflow/README.md index 9921e6229..c96151395 100644 --- a/libs/tensorflow/README.md +++ b/libs/tensorflow/README.md @@ -7,12 +7,14 @@ Created with: ```Bash # https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/experimental/micro +# Assuming Espruino is in /workspace/Espruino +cd ~/workspace git clone https://github.com/tensorflow/tensorflow --depth=1 -mv tensorflow git-tensorflow -cd git-tensorflow +cd tensorflow make -f tensorflow/lite/experimental/micro/tools/make/Makefile make -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=make TAGS="disco_f746ng" generate_projects -cp -R tensorflow/lite/experimental/micro/tools/make/gen/make_x86_64/prj/hello_world/make/* .. +cp -R tensorflow/lite/experimental/micro/tools/make/gen/make_x86_64/prj/hello_world/make/* ~/workspace/Espruino/libs/tensorflow +# cd .. mv tensorflow/tensorflow/lite/experimental/micro/examples/hello_world/* . ``` diff --git a/make/misc/tensorflow.make b/make/misc/tensorflow.make index 76452ad39..9e738e1ae 100644 --- a/make/misc/tensorflow.make +++ b/make/misc/tensorflow.make @@ -56,5 +56,5 @@ INCLUDE += \ -I$(TENSOR_ROOT)/third_party/kissfft \ -I$(TENSOR_ROOT)/third_party/flatbuffers/include -CCFLAGS += -DNDEBUG -g -DTF_LITE_STATIC_MEMORY --std=c++11 -g -fno-rtti -fpermissive -Wno-sign-compare -Wno-conversion -Wno-sign-conversion -Wno-missing-field-initializers -Wno-type-limits -Wno-unused-parameter +CCFLAGS += -DNDEBUG -g -DTF_LITE_STATIC_MEMORY --std=c++11 -g -fno-rtti -fpermissive -Wno-sign-compare -Wno-conversion -Wno-sign-conversion -Wno-missing-field-initializers -Wno-type-limits -Wno-unused-parameter -Wno-unused-variable