aboutsummaryrefslogtreecommitdiff
path: root/verif/conformance
diff options
context:
space:
mode:
authorWon Jeon <won.jeon@arm.com>2023-06-10 00:20:04 +0000
committerEric Kunze <eric.kunze@arm.com>2023-06-29 15:47:40 +0000
commit78155c63024c33d31e3b66e8e198fd5f93837df1 (patch)
treefcc16affd189eea6d1f4647d8fb4f6ea71a39ff2 /verif/conformance
parenteb74106e1bc52127e5631736e10e8f8b0b7a1d07 (diff)
downloadreference_model-78155c63024c33d31e3b66e8e198fd5f93837df1.tar.gz
Add support for ERF operator to reference model
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: Ib42b867287b83a183a0d0fb1f1eb29974f58fae4
Diffstat (limited to 'verif/conformance')
-rw-r--r--verif/conformance/test_select.py6
-rw-r--r--verif/conformance/tosa_base_profile_framework_ops_info.json13
-rw-r--r--verif/conformance/tosa_main_profile_ops_info.json65
3 files changed, 82 insertions, 2 deletions
diff --git a/verif/conformance/test_select.py b/verif/conformance/test_select.py
index 9868a7f..f4e2a61 100644
--- a/verif/conformance/test_select.py
+++ b/verif/conformance/test_select.py
@@ -518,6 +518,12 @@ class ExpOperator(Operator):
name = "exp"
+class ErfOperator(Operator):
+ """Test selector for the ERF operator."""
+
+ name = "erf"
+
+
class FFT2DOperator(Operator):
"""Test selector for the FFT2D operator."""
diff --git a/verif/conformance/tosa_base_profile_framework_ops_info.json b/verif/conformance/tosa_base_profile_framework_ops_info.json
index 24a23b5..5d7e4a3 100644
--- a/verif/conformance/tosa_base_profile_framework_ops_info.json
+++ b/verif/conformance/tosa_base_profile_framework_ops_info.json
@@ -85,6 +85,16 @@
"tosa-mi"
]
},
+ "erf": {
+ "tests": [
+ "erf_13x21x3_qu8",
+ "erf_14x19_qi8",
+ "erf_1x8x4x17_qi16"
+ ],
+ "profile": [
+ "tosa-mi"
+ ]
+ },
"fully_connected": {
"alternate_names": [
"matmul"
@@ -257,8 +267,7 @@
"tanh_1x8x4x17_qi16"
],
"profile": [
- "tosa-bi",
"tosa-mi"
]
}
-} \ No newline at end of file
+}
diff --git a/verif/conformance/tosa_main_profile_ops_info.json b/verif/conformance/tosa_main_profile_ops_info.json
index 5df89d6..07b6af3 100644
--- a/verif/conformance/tosa_main_profile_ops_info.json
+++ b/verif/conformance/tosa_main_profile_ops_info.json
@@ -2925,5 +2925,70 @@
]
}
}
+ },
+ "erf": {
+ "group": "activation",
+ "profile": [
+ "tosa-mi"
+ ],
+ "generation": {
+ "standard": {
+ "generator_args": [
+ [
+ "--target-dtype",
+ "fp32",
+ "--target-dtype",
+ "fp16",
+ "--target-dtype",
+ "bf16",
+ "--fp-values-range",
+ "-2.0,2.0",
+ "--tensor-dim-range",
+ "18,60",
+ "--target-rank",
+ "1",
+ "--target-rank",
+ "2",
+ "--target-rank",
+ "3"
+ ],
+ [
+ "--target-dtype",
+ "fp32",
+ "--target-dtype",
+ "fp16",
+ "--target-dtype",
+ "bf16",
+ "--fp-values-range",
+ "-2.0,2.0",
+ "--tensor-dim-range",
+ "1,24",
+ "--target-rank",
+ "4",
+ "--target-rank",
+ "5"
+ ],
+ [
+ "--target-dtype",
+ "fp32",
+ "--fp-values-range",
+ "-2.0,2.0",
+ "--target-shape",
+ "1,65535,2,1,1",
+ "--target-shape",
+ "1,65540,1,2"
+ ]
+ ]
+ }
+ },
+ "selection": {
+ "default": {
+ "params": {},
+ "permutes": [
+ "shape",
+ "type"
+ ]
+ }
+ }
}
} \ No newline at end of file