From 65094cfea4aa4eef2023fd687173acebf3059b72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=B2=9C=EA=B5=90/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 13 Aug 2019 10:41:07 +0900 Subject: [PATCH] [tf2tflite] Test script runnable from any directory (#6514) Previously test script partially assumes it runs on WORKDIR, which makes no harm at all. This commit just explicitly call file path including WORKDIR to be matched with other lines convention and to be runnable from any directory. Signed-off-by: Cheongyo Bahk --- compiler/tf2tflite/testall.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/tf2tflite/testall.sh b/compiler/tf2tflite/testall.sh index f92c9ed..ff18b60 100755 --- a/compiler/tf2tflite/testall.sh +++ b/compiler/tf2tflite/testall.sh @@ -65,18 +65,18 @@ while [[ $# -ne 0 ]]; do --backend-arg "${WORKDIR}/${PREFIX}.info" \ --pre "${RANDOMIZE_ACTION_PATH}" \ --pre "${HDF5_EXPORT_ACTION_PATH}" \ - --pre-arg "${PREFIX}.input.h5" \ + --pre-arg "${WORKDIR}/${PREFIX}.input.h5" \ --post "${HDF5_EXPORT_ACTION_PATH}" \ - --post-arg "${PREFIX}.expected.h5" + --post-arg "${WORKDIR}/${PREFIX}.expected.h5" # Run TensorFlow Lite "${NNKIT_RUN_PATH}" \ --backend "${TFLITE_BACKEND_PATH}" \ --backend-arg "${WORKDIR}/${PREFIX}.tflite" \ --pre "${HDF5_IMPORT_ACTION_PATH}" \ - --pre-arg "${PREFIX}.input.h5" \ + --pre-arg "${WORKDIR}/${PREFIX}.input.h5" \ --post "${HDF5_EXPORT_ACTION_PATH}" \ - --post-arg "${PREFIX}.obtained.h5" + --post-arg "${WORKDIR}/${PREFIX}.obtained.h5" "${I5DIFF_PATH}" -d 0.001 "${PREFIX}.expected.h5" "${PREFIX}.obtained.h5" -- 2.7.4