From 4fb70ed713d49515040b041eff3639c36be17ac8 Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Wed, 24 Aug 2022 14:08:51 -0700 Subject: Add copyright and license to example shell script Also fix up some path issues with the script Signed-off-by: Eric Kunze Change-Id: I59e54d01db7b4e734806460c965f4b2e76771f52 --- examples/run_ref_model_examples.sh | 13 ++++++++++--- 1 file 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 -- cgit v1.2.1