Skip to content

Commit

Permalink
move micropython module into micropython, add tflite-micro repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mzakharo committed Feb 13, 2023
1 parent 7a5aaca commit c11e845
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 405 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "tflite-micro-esp-examples"]
path = tflite-micro-esp-examples
url = https://github.com/espressif/tflite-micro-esp-examples.git
[submodule "tflite-micro"]
path = tflite-micro
url = https://github.com/tensorflow/tflite-micro
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FLAGS= -DTF_LITE_STATIC_MEMORY
all:
g++ micro.cc $(FLAGS) -I ../tflite-micro -I ../tflite-micro/tensorflow/lite/micro/tools/make/downloads/flatbuffers/include -I ../tflite-micro/tensorflow/lite/micro/tools/make/downloads/gemmlowp/ -ltensorflow-microlite -L ../tflite-micro/gen/linux_x86_64_default/lib/
g++ micro.cc $(FLAGS) -I tflite-micro -I tflite-micro/tensorflow/lite/micro/tools/make/downloads/flatbuffers/include -I tflite-micro/tensorflow/lite/micro/tools/make/downloads/gemmlowp/ -ltensorflow-microlite -L tflite-micro/gen/linux_x86_64_default/lib/

tflite:
cd ../tflite-micro && make -f tensorflow/lite/micro/tools/make/Makefile -j4
cd tflite-micro && make -f tensorflow/lite/micro/tools/make/Makefile -j4

gen:
xxd -i model_fc.tflite > src/model_fc.h
xxd -i model_fc.tflite > micropython/tfmicro/model_fc.h

2 changes: 1 addition & 1 deletion micro.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "tensorflow/lite/micro/all_ops_resolver.h"
#include "tensorflow/lite/micro/micro_interpreter.h"
#include "tensorflow/lite/schema/schema_generated.h"
#include "src/model_fc.h"
#include "micropython/tfmicro/model_fc.h"
#include <stdio.h>

const int tensor_arena_size = 3200;
Expand Down
17 changes: 0 additions & 17 deletions src/micropython.cmake

This file was deleted.

11 changes: 0 additions & 11 deletions src/micropython.mk

This file was deleted.

289 changes: 0 additions & 289 deletions src/model_fc.h

This file was deleted.

61 changes: 0 additions & 61 deletions src/tfmicro.cpp

This file was deleted.

18 changes: 0 additions & 18 deletions src/tfmicromodule.c

This file was deleted.

4 changes: 0 additions & 4 deletions src/tfmicromodule.h

This file was deleted.

1 change: 1 addition & 0 deletions tflite-micro
Submodule tflite-micro added at 154bc2

0 comments on commit c11e845

Please sign in to comment.