Don't run MODELS/* in run_benchmark_op.sh (#3709)
author이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Tue, 27 Nov 2018 01:13:42 +0000 (10:13 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Tue, 27 Nov 2018 01:13:42 +0000 (10:13 +0900)
`run_benchmark_op.sh` is for benchmarking a given operator.

Models such as inception_nonslim, inception_slim and mobilenet are
located under MODELS, and executed from `run_benchmark_op.sh`.

Thus, `run_benchmark_op.sh` excludes models under `MODELS`.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
tools/test_driver/run_benchmark_op.sh

index 54c4a9c..4b34673 100755 (executable)
@@ -104,7 +104,7 @@ function get_benchmark_op_list()
     pushd $MODEL_TEST_ROOT_PATH > /dev/null
     for DIR in $TEST_DIRS; do
         if [ -d "$DIR" ]; then
-            TESTS_FOUND=$(find "$DIR" -type f -name 'config.sh' -exec dirname {} \;| sed 's|^./||' | sort)
+            TESTS_FOUND=$(find "$DIR" -type f -name 'config.sh' -exec dirname {} \;| sed 's|^./||' | grep -v '^MODELS/' | sort)
             TESTS_TO_RUN="$TESTS_TO_RUN $TESTS_FOUND"
         fi
     done