* [tf2tflite-dredd-pbtxt] adding env vars that will be used by rule-lib.sh
This adds env vars taht will be used by rule-lib.sh.
Currently var naming in rule-lib.sh in dredd-rule-lib has tfl dependency, so it cannot be used with circle.
This new name is to remove the dependency.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* Update compiler/tf2tflite-dredd-pbtxt-test/runner.sh
Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
pushd "${WORKDIR}"
-# loading RULE and functions that checks tflite file
-source rule-lib.sh
+# running each rule file
while [[ $# -ne 0 ]]; do
PREFIX="$1"; shift
# Note: turn off 'command printing'. Otherwise printing will be so messy
set +x
+
+ # set vars required by rule-lib.sh and rule file
+ COMPILED_FILE=${TFLITE_PATH}
+ INSPECT_PROG_PATH=${TFL_INSPECT_PATH}
+ VERIFY_PROG_PATH=${TFL_VERIFY_PATH}
+
+ source rule-lib.sh
source "${MODEL_RULE_PATH}"
+
set -x
if [[ $? -eq 0 ]]; then