diff options
author | Eric Kunze <eric.kunze@arm.com> | 2022-08-24 14:08:51 -0700 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-08-25 22:20:18 +0000 |
commit | 4fb70ed713d49515040b041eff3639c36be17ac8 (patch) | |
tree | 052a0e5bad174a3c29659723fa2ed3a3263c47ee /examples | |
parent | 473eb38f101e2227797ee316a3d0423fb7a247d5 (diff) | |
download | reference_model-4fb70ed713d49515040b041eff3639c36be17ac8.tar.gz |
Add copyright and license to example shell script
Also fix up some path issues with the script
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I59e54d01db7b4e734806460c965f4b2e76771f52
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/run_ref_model_examples.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/examples/run_ref_model_examples.sh b/examples/run_ref_model_examples.sh index 5762021..2744bc8 100755 --- a/examples/run_ref_model_examples.sh +++ b/examples/run_ref_model_examples.sh @@ -1,4 +1,11 @@ #!/bin/bash -x + +# Copyright (c) 2022 Arm Limited. +# SPDX-License-Identifier: Apache-2.0 + +# This script runs the given example networks against the TOSA +# reference model as a reference for using the reference model. + set -e run_test() @@ -11,11 +18,11 @@ run_test() # Assumes the reference model is already built in ../build ../build/reference_model/tosa_reference_model \ - --test_desc=examples/${TEST}/flatbuffer-${FRAMEWORK}/desc.json \ + --test_desc=../examples/${TEST}/flatbuffer-${FRAMEWORK}/desc.json \ --ofm_file=out.npy python3 -c "import sys; import numpy as np; a = np.load(sys.argv[1]); b = np.load(sys.argv[2]); sys.exit(int((a != b).all()));" \ - examples/${TEST}/${FRAMEWORK}_result.npy \ - examples/${TEST}/flatbuffer-${FRAMEWORK}/out.npy + ../examples/${TEST}/${FRAMEWORK}_result.npy \ + ../examples/${TEST}/flatbuffer-${FRAMEWORK}/out.npy } run_test test_add_1x4x4x4_f32 tf |