aboutsummaryrefslogtreecommitdiff
path: root/verif/tests/test_tosa_refmodel.py
diff options
context:
space:
mode:
authorJerry Ge <jerry.ge@arm.com>2023-05-01 18:36:43 +0000
committerJerry Ge <jerry.ge@arm.com>2023-05-10 02:40:49 +0000
commit0bd4ec89d52cc1fd36e92dff2fb496b3550ee7f5 (patch)
treed2662a0e62aec08a648edf61da62ee789a481080 /verif/tests/test_tosa_refmodel.py
parenta4d748b08accce06fab93e2d2b96e499b35ae89b (diff)
downloadreference_model-0bd4ec89d52cc1fd36e92dff2fb496b3550ee7f5.tar.gz
Refactor ref_model rank checking and add level check to argmax
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: Iad035b31d5e5e83040068e6311501490765bfff7
Diffstat (limited to 'verif/tests/test_tosa_refmodel.py')
-rw-r--r--verif/tests/test_tosa_refmodel.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/verif/tests/test_tosa_refmodel.py b/verif/tests/test_tosa_refmodel.py
index 1f9cd3e..79e6720 100644
--- a/verif/tests/test_tosa_refmodel.py
+++ b/verif/tests/test_tosa_refmodel.py
@@ -37,6 +37,7 @@ OUTPUT_RESULT_FILE = "result_numpy_pytest.npy"
OUTPUT_CONST_GLOB = "const-*.npy"
TEST_DESC_FILENAME = "desc.json"
+TOSA_LEVEL = "EIGHTK"
# Conversion from refmodel type into the type abbreviation used in the test output
REF_MODEL_TYPE_TO_OUT = {
@@ -182,6 +183,8 @@ def test_refmodel_simple_op(tosaTest):
str(desc_file),
"--ofm_file",
OUTPUT_OFM_FILE,
+ "--tosa_level",
+ TOSA_LEVEL,
]
try:
run_sh_command(refmodel_cmd, verbose=True, capture_output=True)