From da6e7957c70e8934a7f13cebbbdafaf10c504c4c Mon Sep 17 00:00:00 2001 From: Nick Kreeger <kreeger@google.com> Date: Mon, 30 Dec 2019 09:36:33 -0800 Subject: [PATCH] Use the environment variable Xtensa core in micro unit tests instead of hard coding. PiperOrigin-RevId: 287561956 Change-Id: I0a365eb78cccf17430a195af2b83a063869855dd --- tensorflow/lite/micro/testing/test_xtensa_xpg_binary.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tensorflow/lite/micro/testing/test_xtensa_xpg_binary.sh b/tensorflow/lite/micro/testing/test_xtensa_xpg_binary.sh index dc4d50c0a49..9eeeed352e5 100755 --- a/tensorflow/lite/micro/testing/test_xtensa_xpg_binary.sh +++ b/tensorflow/lite/micro/testing/test_xtensa_xpg_binary.sh @@ -26,8 +26,7 @@ declare -r MICRO_LOG_PATH=${TEST_TMPDIR}/$1 declare -r MICRO_LOG_FILENAME=${MICRO_LOG_PATH}/logs.txt mkdir -p ${MICRO_LOG_PATH} -# TODO(kreeger): Enable the ability to pass a different core: -xt-run --xtensa-core=hifi3_bd5 $1 2>&1 | tee ${MICRO_LOG_FILENAME} +xt-run --xtensa-core=${XTENSA_CORE} $1 2>&1 | tee ${MICRO_LOG_FILENAME} if grep -q "$2" ${MICRO_LOG_FILENAME} then