aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/cast/cast_47_i32_outi16
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/cast/cast_47_i32_outi16')
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outi16/Conformance-result-0.json52
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outi16/desc.json24
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outi16/input-0.json52
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outi16/test.json47
4 files changed, 175 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_47_i32_outi16/Conformance-result-0.json b/operators/type_conversion/cast/cast_47_i32_outi16/Conformance-result-0.json
new file mode 100644
index 000000000..1365e0b45
--- /dev/null
+++ b/operators/type_conversion/cast/cast_47_i32_outi16/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_outi16/desc.json b/operators/type_conversion/cast/cast_47_i32_outi16/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/type_conversion/cast/cast_47_i32_outi16/desc.json
@@ -0,0 +1,24 @@
+{
+ "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-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_47_i32_outi16/input-0.json b/operators/type_conversion/cast/cast_47_i32_outi16/input-0.json
new file mode 100644
index 000000000..1365e0b45
--- /dev/null
+++ b/operators/type_conversion/cast/cast_47_i32_outi16/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_outi16/test.json b/operators/type_conversion/cast/cast_47_i32_outi16/test.json
new file mode 100644
index 000000000..8235ce2e8
--- /dev/null
+++ b/operators/type_conversion/cast/cast_47_i32_outi16/test.json
@@ -0,0 +1,47 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ 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"
+ ]
+ }
+ ]
+}