From: MyungJoo Ham Date: Wed, 25 Mar 2020 02:38:29 +0000 (+0900) Subject: [Android/Build] Add comments on TF-Lite versions and types. X-Git-Tag: accepted/tizen/unified/20200331.030822~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6026df5b9a05eafe987b4a99f797798d478b31ab;p=platform%2Fupstream%2Fnnstreamer.git [Android/Build] Add comments on TF-Lite versions and types. INT8/INT16 may incur build errors with older TF-Lite. For users with older TF-Lite, leave some comments. Signed-off-by: MyungJoo Ham --- diff --git a/api/android/api/src/main/jni/Android.mk b/api/android/api/src/main/jni/Android.mk index f562d0a..f43a13c 100644 --- a/api/android/api/src/main/jni/Android.mk +++ b/api/android/api/src/main/jni/Android.mk @@ -39,7 +39,7 @@ endif #------------------------------------------------------ ifeq ($(ENABLE_TF_LITE),true) NNS_API_FLAGS += -DENABLE_TENSORFLOW_LITE=1 -# define types in tensorflow-lite sub-plugin +# define types in tensorflow-lite sub-plugin. This assumes tensorflow-lite >= 1.13 (older versions don't have INT8/INT16) NNS_API_FLAGS += -DTFLITE_INT8=1 -DTFLITE_INT16=1 NNS_API_STATIC_LIBS += tensorflow-lite cpufeatures