mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/tensorflow-lite: remove deprecated package
Use tflite-micro instead
This commit is contained in:
parent
2327d74d24
commit
eefa4de943
@ -1,32 +0,0 @@
|
||||
PKG_NAME=tensorflow-lite
|
||||
PKG_URL=https://github.com/tensorflow/tensorflow
|
||||
# 2.2.2
|
||||
PKG_VERSION=d745ff2a48cebf18e847e8b602a744e97e058946
|
||||
PKG_LICENSE=Apache2.0
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
TF_MODULES = tensorflow-lite-hello_world
|
||||
TF_USEMODULE = $(filter $(TF_MODULES),$(USEMODULE))
|
||||
|
||||
.PHONY: tensorflow-lite tensorflow-lite-%
|
||||
|
||||
CFLAGS += -Wno-pedantic
|
||||
CFLAGS += -Wno-cast-align
|
||||
CXXEXFLAGS += -Wno-maybe-uninitialized
|
||||
CFLAGS += -DTF_LITE_STATIC_MEMORY
|
||||
CFLAGS += -DTF_LITE_USE_GLOBAL_ROUND
|
||||
|
||||
all: tensorflow-lite
|
||||
|
||||
tensorflow-lite: $(TF_USEMODULE)
|
||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/c -f $(CURDIR)/Makefile.$(PKG_NAME)-c
|
||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/core/api -f $(CURDIR)/Makefile.$(PKG_NAME)-core
|
||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/kernels -f $(CURDIR)/Makefile.$(PKG_NAME)-kernels
|
||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/kernels/internal -f $(CURDIR)/Makefile.$(PKG_NAME)-kernels-internal
|
||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/micro/kernels -f $(CURDIR)/Makefile.$(PKG_NAME)-micro-kernels
|
||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/micro/memory_planner -f $(CURDIR)/Makefile.$(PKG_NAME)-memory
|
||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/micro -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
|
||||
tensorflow-lite-%:
|
||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/micro/examples/$* -f $(CURDIR)/Makefile.$(PKG_NAME)-$*
|
@ -1,15 +0,0 @@
|
||||
USEMODULE += cpp11-compat
|
||||
|
||||
USEPKG += flatbuffers
|
||||
USEPKG += gemmlowp
|
||||
|
||||
USEMODULE += tensorflow-lite
|
||||
USEMODULE += tensorflow-lite-c
|
||||
USEMODULE += tensorflow-lite-core
|
||||
USEMODULE += tensorflow-lite-kernels
|
||||
USEMODULE += tensorflow-lite-kernels-internal
|
||||
USEMODULE += tensorflow-lite-memory
|
||||
USEMODULE += tensorflow-lite-micro-kernels
|
||||
|
||||
# Tensorflow Lite doesn't build on riscv because of missing math functions
|
||||
FEATURES_BLACKLIST += arch_riscv
|
@ -1,6 +0,0 @@
|
||||
INCLUDES += -I$(PKGDIRBASE)/tensorflow-lite
|
||||
|
||||
ifneq (,$(filter cortex-m%,$(CPU_CORE)))
|
||||
# LLVM/clang triggers a hard fault on Cortex-M
|
||||
TOOLCHAINS_BLACKLIST += llvm
|
||||
endif
|
@ -1,12 +0,0 @@
|
||||
MODULE = tensorflow-lite
|
||||
|
||||
CXXEXFLAGS += -Wno-sign-compare
|
||||
CXXEXFLAGS += -Wno-strict-aliasing
|
||||
CXXEXFLAGS += -Wno-type-limits
|
||||
CXXEXFLAGS += -Wno-unused-parameter
|
||||
CXXEXFLAGS += -Wno-unused-variable
|
||||
|
||||
SRCXXEXT = cc
|
||||
SRCXXEXCLUDE = $(wildcard *_test.$(SRCXXEXT))
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1,9 +0,0 @@
|
||||
MODULE = tensorflow-lite-c
|
||||
|
||||
CFLAGS += -Wno-strict-prototypes
|
||||
CFLAGS += -Wno-old-style-definition
|
||||
|
||||
NO_AUTO_SRC = 1
|
||||
SRC = common.c
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1,17 +0,0 @@
|
||||
MODULE = tensorflow-lite-core
|
||||
|
||||
CXXEXFLAGS += -Wno-sign-compare
|
||||
CXXEXFLAGS += -Wno-type-limits
|
||||
|
||||
SRCXXEXT = cc
|
||||
SRCXXEXCLUDE = $(wildcard *_test.$(SRCXXEXT))
|
||||
|
||||
NO_AUTO_SRC = 1
|
||||
SRCXX = \
|
||||
error_reporter.cc \
|
||||
flatbuffer_conversions.cc \
|
||||
op_resolver.cc \
|
||||
tensor_utils.cc \
|
||||
#
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1,17 +0,0 @@
|
||||
MODULE = tensorflow-lite-hello_world
|
||||
|
||||
CXXEXFLAGS += -Wno-type-limits
|
||||
CXXEXFLAGS += -Wno-unused-parameter
|
||||
|
||||
SRCXXEXT = cc
|
||||
SRCXXEXCLUDE = $(wildcard *_test.$(SRCXXEXT))
|
||||
|
||||
NO_AUTO_SRC = 1
|
||||
SRCXX = \
|
||||
constants.cc \
|
||||
main_functions.cc \
|
||||
output_handler.cc \
|
||||
sine_model_data.cc \
|
||||
#
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1,11 +0,0 @@
|
||||
MODULE = tensorflow-lite-kernels
|
||||
|
||||
CXXEXFLAGS += -Wno-unused-function
|
||||
CXXEXFLAGS += -Wno-unused-parameter
|
||||
|
||||
SRCXXEXT = cc
|
||||
|
||||
NO_AUTO_SRC = 1
|
||||
SRCXX = kernel_util.cc
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1,11 +0,0 @@
|
||||
MODULE = tensorflow-lite-kernels-internal
|
||||
|
||||
CXXEXFLAGS += -Wno-unused-function
|
||||
CXXEXFLAGS += -Wno-unused-parameter
|
||||
|
||||
SRCXXEXT = cc
|
||||
|
||||
NO_AUTO_SRC = 1
|
||||
SRCXX = quantization_util.cc
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1,9 +0,0 @@
|
||||
MODULE = tensorflow-lite-memory
|
||||
|
||||
CXXEXFLAGS += -Wno-sign-compare
|
||||
CXXEXFLAGS += -Wno-unused-parameter
|
||||
|
||||
SRCXXEXT = cc
|
||||
SRCXXEXCLUDE = $(wildcard *_test.$(SRCXXEXT))
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1,14 +0,0 @@
|
||||
MODULE = tensorflow-lite-micro-kernels
|
||||
|
||||
CXXEXFLAGS += -Wno-strict-overflow
|
||||
CXXEXFLAGS += -Wno-type-limits
|
||||
CXXEXFLAGS += -Wno-unused-parameter
|
||||
|
||||
ifeq (llvm,$(TOOLCHAIN))
|
||||
CXXEXFLAGS += -Wno-unused-const-variable
|
||||
endif
|
||||
|
||||
SRCXXEXT = cc
|
||||
SRCXXEXCLUDE = $(wildcard *_test.$(SRCXXEXT))
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1,10 +0,0 @@
|
||||
/**
|
||||
* @defgroup pkg_tensorflow-lite TensorFlow Lite
|
||||
* @ingroup pkg
|
||||
* @brief Provides a RIOT support for TensorFlow Lite AI library
|
||||
*
|
||||
* @deprecated Use @ref pkg_tflite-micro instead. Tensorflow-lite package is outdated
|
||||
* and will be removed after 2022.07 release.
|
||||
*
|
||||
* @see https://www.tensorflow.org/lite/microcontrollers
|
||||
*/
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user