aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-10-18 16:32:19 +0100
committerEric Kunze <eric.kunze@arm.com>2022-10-26 17:41:00 +0000
commit3b0544c1e7463295c49a48a162ebb9a546326829 (patch)
tree521e73da485a2e2bd92fe2d3b5c7df22a5733f10
parent2e4d889fb036d1c0a34503400a3f45cfc6f9f3e1 (diff)
downloadreference_model-3b0544c1e7463295c49a48a162ebb9a546326829.tar.gz
Add TILE bool tests & rename CAST/RESCALE tests
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: If9639a94c8e7322d470a1ca97e9e95d821683629
-rw-r--r--verif/conformance/tosa_base_profile_ops_info.json14
-rw-r--r--verif/generator/tosa_arg_gen.py4
2 files changed, 12 insertions, 6 deletions
diff --git a/verif/conformance/tosa_base_profile_ops_info.json b/verif/conformance/tosa_base_profile_ops_info.json
index 9dd5592..ff88293 100644
--- a/verif/conformance/tosa_base_profile_ops_info.json
+++ b/verif/conformance/tosa_base_profile_ops_info.json
@@ -478,10 +478,10 @@
"shape": [],
"type": [],
"output_type": [
- "outINT8",
- "outINT16",
- "outINT32",
- "outBOOL"
+ "outi8",
+ "outi16",
+ "outi32",
+ "outb"
]
},
"permutes": [
@@ -2423,6 +2423,12 @@
],
[
"--target-dtype",
+ "bool",
+ "--tensor-dim-range",
+ "1,16"
+ ],
+ [
+ "--target-dtype",
"int8",
"--target-shape",
"65533",
diff --git a/verif/generator/tosa_arg_gen.py b/verif/generator/tosa_arg_gen.py
index 791fbf7..0203513 100644
--- a/verif/generator/tosa_arg_gen.py
+++ b/verif/generator/tosa_arg_gen.py
@@ -1426,7 +1426,7 @@ class TosaArgGen:
raise Exception("Unexpected input dtype: {}".format(inDtype))
for dtype in dtypeList:
- arg_list.append(("out{}".format(DTypeNames[dtype]), [dtype]))
+ arg_list.append(("out{}".format(testGen.typeStr(dtype)), [dtype]))
return arg_list
@@ -1518,7 +1518,7 @@ class TosaArgGen:
arg_list.append(
(
"out{}_sc{}_dr{}_pc{}".format(
- DTypeNames[outDtype],
+ testGen.typeStr(outDtype),
int(scale32),
int(double_round),
int(per_channel),