summaryrefslogtreecommitdiff
path: root/infra/scripts/test_arm_neurun_acl_neon.sh
blob: c2cd805a89b358fad61c39442e58476a2c4dae91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

set -eo pipefail
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"

CheckTestPrepared

BACKEND="acl_neon"
UNITTEST_SKIPLIST="Product/out/unittest/nnapi_gtest.skip.armv7l-linux.acl_neon"
FRAMEWORK_TESTLIST="tests/scripts/list/neurun_frameworktest_list.armv7l.acl_neon.txt"
REPORT_BASE="report/${BACKEND}"
EXECUTORS=("Linear" "Dataflow" "Parallel")

for EXECUTOR in "${EXECUTORS[@]}";
do
  echo "[EXECUTOR]: ${EXECUTOR}"
  export EXECUTOR="${EXECUTOR}"
  Unittests "${BACKEND}" "${UNITTEST_SKIPLIST}" "${REPORT_BASE}/${EXECUTOR}"
  TFLiteModelVerification "${BACKEND}" "${FRAMEWORK_TESTLIST}" "${REPORT_BASE}/${EXECUTOR}"
done
unset EXECUTOR

# NCNN backend test
# TODO Independent script when supporting ops are increased
export NCNN_LAYOUT="NCHW"
Unittests "srcn" "Product/out/unittest/nnapi_gtest.skip.armv7l-linux.ncnn" "report/ncnn"
TFLiteModelVerification "srcn" "tests/scripts/list/neurun_frameworktest_list.armv7l.ncnn.txt" "report/ncnn"