From 699b0b3fca24f7c30481cbf94ea38110fb412a9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9C=A4=ED=98=84=EC=8B=9D/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 8 Nov 2019 15:07:54 +0900 Subject: [PATCH] [tf2tflite-dredd-pbtxt-test] Adding tfl-verify (#8861) This adds tfl-verify support into files related to cmake. Signed-off-by: Hyun Sik Yoon --- compiler/tf2tflite-dredd-pbtxt-test/CMakeLists.txt | 3 +++ compiler/tf2tflite-dredd-pbtxt-test/requires.cmake | 1 + compiler/tf2tflite-dredd-pbtxt-test/runner.sh | 1 + 3 files changed, 5 insertions(+) diff --git a/compiler/tf2tflite-dredd-pbtxt-test/CMakeLists.txt b/compiler/tf2tflite-dredd-pbtxt-test/CMakeLists.txt index d4fbc14..87cf783 100644 --- a/compiler/tf2tflite-dredd-pbtxt-test/CMakeLists.txt +++ b/compiler/tf2tflite-dredd-pbtxt-test/CMakeLists.txt @@ -1,6 +1,7 @@ nnas_include(TargetRequire) unset(REQUIRED_TARGETS) +list(APPEND REQUIRED_TARGETS tfl-verify) list(APPEND REQUIRED_TARGETS tfl-inspect) list(APPEND REQUIRED_TARGETS tf2tflite) list(APPEND REQUIRED_TARGETS tfkit) @@ -125,10 +126,12 @@ add_custom_command( OUTPUT ${TOOLCHAIN_CONFIG} COMMAND ${CMAKE_COMMAND} -E remove -f ${TOOLCHAIN_CONFIG} COMMAND ${CMAKE_COMMAND} -E echo 'TFL_INSPECT_PATH=\"$\"' >> ${TOOLCHAIN_CONFIG} + COMMAND ${CMAKE_COMMAND} -E echo 'TFL_VERIFY_PATH=\"$\"' >> ${TOOLCHAIN_CONFIG} COMMAND ${CMAKE_COMMAND} -E echo 'TF2TFLITE_PATH=\"$\"' >> ${TOOLCHAIN_CONFIG} # add more if new excutable file is needed in runner.sh and rule-lib.sh DEPENDS tfl-inspect + tfl-verify tf2tflite COMMENT "Generate toolchin configuration" ) diff --git a/compiler/tf2tflite-dredd-pbtxt-test/requires.cmake b/compiler/tf2tflite-dredd-pbtxt-test/requires.cmake index f5a746e..94fb442 100644 --- a/compiler/tf2tflite-dredd-pbtxt-test/requires.cmake +++ b/compiler/tf2tflite-dredd-pbtxt-test/requires.cmake @@ -1,4 +1,5 @@ require("tfkit") require("tf2tflite") +require("tfl-verify") require("tfl-inspect") require("dredd-rule-lib") diff --git a/compiler/tf2tflite-dredd-pbtxt-test/runner.sh b/compiler/tf2tflite-dredd-pbtxt-test/runner.sh index f84137e..9882f11 100755 --- a/compiler/tf2tflite-dredd-pbtxt-test/runner.sh +++ b/compiler/tf2tflite-dredd-pbtxt-test/runner.sh @@ -21,6 +21,7 @@ CONFIG_PATH="$1"; shift source "${CONFIG_PATH}" echo "-- Found tfl-inspect: ${TFL_INSPECT_PATH}" +echo "-- Found tfl-verify: ${TFL_VERIFY_PATH}" echo "-- Found tf2tflite: ${TF2TFLITE_PATH}" echo "-- Found workdir: ${WORKDIR}" -- 2.7.4