aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/cast/cast_47_i32_outINT16
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:08:52 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:08:52 +0100
commit0ea9b225e914a7ee00ebd0bc7c3861dc6230a900 (patch)
tree28627ef1d7ae4cf0fed98cd50b84e76bc056539f /operators/type_conversion/cast/cast_47_i32_outINT16
parent6ecf925ab6c61ccfdfee6e103db7fffe1b1304bc (diff)
downloadconformance_tests-0ea9b225e914a7ee00ebd0bc7c3861dc6230a900.tar.gz
Updating CAST tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I5d447b4fa19217a414ded2facc6000a6dc0b874f
Diffstat (limited to 'operators/type_conversion/cast/cast_47_i32_outINT16')
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outINT16/Conformance-result-0.json52
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outINT16/desc.json20
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outINT16/input-0.json52
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outINT16/test.json47
4 files changed, 171 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_47_i32_outINT16/Conformance-result-0.json b/operators/type_conversion/cast/cast_47_i32_outINT16/Conformance-result-0.json
new file mode 100644
index 000000000..1365e0b45
--- /dev/null
+++ b/operators/type_conversion/cast/cast_47_i32_outINT16/Conformance-result-0.json
@@ -0,0 +1,52 @@
+{
+ "type": "int32",
+ "data": [
+ -1398963051,
+ -1161118510,
+ -947909998,
+ -1581311534,
+ -2070339969,
+ 763038193,
+ 2015670728,
+ -1624217026,
+ -873874641,
+ 27186849,
+ 1836108670,
+ 834350807,
+ 1143269295,
+ 348393183,
+ -356328586,
+ -1289453758,
+ 1564718363,
+ 1306204893,
+ -2039674280,
+ 925166577,
+ -1785039500,
+ 1026428481,
+ 1399961104,
+ -1584594892,
+ -284172797,
+ -1615965109,
+ 288974921,
+ 1836367173,
+ -1800151569,
+ -439898308,
+ 2032037150,
+ -854918860,
+ -1579617215,
+ -49031152,
+ 35959970,
+ 699496467,
+ -799991099,
+ 1956886988,
+ 90291978,
+ -917206472,
+ 1976906654,
+ 1824538310,
+ -3587260,
+ -2040712946,
+ 416337419,
+ 237073786,
+ -1510933276
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_47_i32_outINT16/desc.json b/operators/type_conversion/cast/cast_47_i32_outINT16/desc.json
new file mode 100644
index 000000000..3cd43b509
--- /dev/null
+++ b/operators/type_conversion/cast/cast_47_i32_outINT16/desc.json
@@ -0,0 +1,20 @@
+{
+ "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"
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_47_i32_outINT16/input-0.json b/operators/type_conversion/cast/cast_47_i32_outINT16/input-0.json
new file mode 100644
index 000000000..1365e0b45
--- /dev/null
+++ b/operators/type_conversion/cast/cast_47_i32_outINT16/input-0.json
@@ -0,0 +1,52 @@
+{
+ "type": "int32",
+ "data": [
+ -1398963051,
+ -1161118510,
+ -947909998,
+ -1581311534,
+ -2070339969,
+ 763038193,
+ 2015670728,
+ -1624217026,
+ -873874641,
+ 27186849,
+ 1836108670,
+ 834350807,
+ 1143269295,
+ 348393183,
+ -356328586,
+ -1289453758,
+ 1564718363,
+ 1306204893,
+ -2039674280,
+ 925166577,
+ -1785039500,
+ 1026428481,
+ 1399961104,
+ -1584594892,
+ -284172797,
+ -1615965109,
+ 288974921,
+ 1836367173,
+ -1800151569,
+ -439898308,
+ 2032037150,
+ -854918860,
+ -1579617215,
+ -49031152,
+ 35959970,
+ 699496467,
+ -799991099,
+ 1956886988,
+ 90291978,
+ -917206472,
+ 1976906654,
+ 1824538310,
+ -3587260,
+ -2040712946,
+ 416337419,
+ 237073786,
+ -1510933276
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_47_i32_outINT16/test.json b/operators/type_conversion/cast/cast_47_i32_outINT16/test.json
new file mode 100644
index 000000000..475e2e045
--- /dev/null
+++ b/operators/type_conversion/cast/cast_47_i32_outINT16/test.json
@@ -0,0 +1,47 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 47
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 47
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}