aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/cast/cast_36_i16_outf32
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2023-01-31 12:20:46 +0000
committerEric Kunze <eric.kunze@arm.com>2023-02-02 22:02:40 +0000
commitde1c2ce9e0710f39464069d880fac7bb9ec24d1a (patch)
tree795ca43d4958ce877b7acad79931cdbfeaa4970d /operators/type_conversion/cast/cast_36_i16_outf32
parentee8287e7d32a98f5e6197a361702bfc07e6efd91 (diff)
downloadconformance_tests-de1c2ce9e0710f39464069d880fac7bb9ec24d1a.tar.gz
Create MI tests for Type Conversion: CAST
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I2faca325583245248e7043cf3359e696ececac19
Diffstat (limited to 'operators/type_conversion/cast/cast_36_i16_outf32')
-rw-r--r--operators/type_conversion/cast/cast_36_i16_outf32/Conformance-result-0.json41
-rw-r--r--operators/type_conversion/cast/cast_36_i16_outf32/desc.json23
-rw-r--r--operators/type_conversion/cast/cast_36_i16_outf32/input-0.json41
-rw-r--r--operators/type_conversion/cast/cast_36_i16_outf32/test.json52
4 files changed, 157 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_36_i16_outf32/Conformance-result-0.json b/operators/type_conversion/cast/cast_36_i16_outf32/Conformance-result-0.json
new file mode 100644
index 000000000..306f82135
--- /dev/null
+++ b/operators/type_conversion/cast/cast_36_i16_outf32/Conformance-result-0.json
@@ -0,0 +1,41 @@
+{
+ "type": "float32",
+ "data": [
+ -30852.0,
+ -10939.0,
+ -5890.0,
+ -4501.0,
+ 3352.0,
+ 18388.0,
+ -2148.0,
+ 22361.0,
+ 1948.0,
+ -15706.0,
+ -17760.0,
+ -11634.0,
+ 6387.0,
+ -16877.0,
+ 27143.0,
+ -1320.0,
+ 23807.0,
+ 12010.0,
+ -10922.0,
+ -17810.0,
+ 15987.0,
+ -11093.0,
+ -16590.0,
+ 28205.0,
+ -1139.0,
+ -29585.0,
+ -343.0,
+ -2572.0,
+ 23853.0,
+ 13864.0,
+ -20228.0,
+ -22908.0,
+ 6789.0,
+ -29664.0,
+ -11861.0,
+ -23711.0
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_36_i16_outf32/desc.json b/operators/type_conversion/cast/cast_36_i16_outf32/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/type_conversion/cast/cast_36_i16_outf32/desc.json
@@ -0,0 +1,23 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0"
+ ],
+ "ifm_file": [
+ "input-0.npy"
+ ],
+ "ofm_name": [
+ "result-0"
+ ],
+ "ofm_file": [
+ "result-0.npy"
+ ],
+ "expected_return_code": 0,
+ "expected_failure": false,
+ "expected_result_file": [
+ "Conformance-result-0.npy"
+ ],
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_36_i16_outf32/input-0.json b/operators/type_conversion/cast/cast_36_i16_outf32/input-0.json
new file mode 100644
index 000000000..8906412f9
--- /dev/null
+++ b/operators/type_conversion/cast/cast_36_i16_outf32/input-0.json
@@ -0,0 +1,41 @@
+{
+ "type": "int32",
+ "data": [
+ -30852,
+ -10939,
+ -5890,
+ -4501,
+ 3352,
+ 18388,
+ -2148,
+ 22361,
+ 1948,
+ -15706,
+ -17760,
+ -11634,
+ 6387,
+ -16877,
+ 27143,
+ -1320,
+ 23807,
+ 12010,
+ -10922,
+ -17810,
+ 15987,
+ -11093,
+ -16590,
+ 28205,
+ -1139,
+ -29585,
+ -343,
+ -2572,
+ 23853,
+ 13864,
+ -20228,
+ -22908,
+ 6789,
+ -29664,
+ -11861,
+ -23711
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_36_i16_outf32/test.json b/operators/type_conversion/cast/cast_36_i16_outf32/test.json
new file mode 100644
index 000000000..b52acdab6
--- /dev/null
+++ b/operators/type_conversion/cast/cast_36_i16_outf32/test.json
@@ -0,0 +1,52 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 36
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 36
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}