aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/cast/cast_53_i16_outi8
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/cast/cast_53_i16_outi8')
-rw-r--r--operators/type_conversion/cast/cast_53_i16_outi8/Conformance-result-0.json58
-rw-r--r--operators/type_conversion/cast/cast_53_i16_outi8/desc.json24
-rw-r--r--operators/type_conversion/cast/cast_53_i16_outi8/input-0.json58
-rw-r--r--operators/type_conversion/cast/cast_53_i16_outi8/test.json47
4 files changed, 187 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_53_i16_outi8/Conformance-result-0.json b/operators/type_conversion/cast/cast_53_i16_outi8/Conformance-result-0.json
new file mode 100644
index 000000000..e7cba8f0d
--- /dev/null
+++ b/operators/type_conversion/cast/cast_53_i16_outi8/Conformance-result-0.json
@@ -0,0 +1,58 @@
+{
+ "type": "int32",
+ "data": [
+ 3737,
+ 328,
+ 18605,
+ 32512,
+ 10768,
+ -5952,
+ -6136,
+ -5377,
+ 20579,
+ -11717,
+ -21826,
+ -10860,
+ -31280,
+ -25812,
+ -26867,
+ 17796,
+ 14572,
+ 12895,
+ -2499,
+ 14225,
+ -22199,
+ 26255,
+ 68,
+ 28708,
+ -22787,
+ -175,
+ 12866,
+ -287,
+ -3529,
+ -21875,
+ -7798,
+ -17121,
+ -13009,
+ 12039,
+ 8538,
+ 7025,
+ -9057,
+ 30126,
+ -27024,
+ -10316,
+ -25035,
+ -10555,
+ 30270,
+ -8765,
+ 26776,
+ -324,
+ 13088,
+ -2791,
+ -15344,
+ 17316,
+ 30747,
+ -15498,
+ 18268
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_53_i16_outi8/desc.json b/operators/type_conversion/cast/cast_53_i16_outi8/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/type_conversion/cast/cast_53_i16_outi8/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_53_i16_outi8/input-0.json b/operators/type_conversion/cast/cast_53_i16_outi8/input-0.json
new file mode 100644
index 000000000..e7cba8f0d
--- /dev/null
+++ b/operators/type_conversion/cast/cast_53_i16_outi8/input-0.json
@@ -0,0 +1,58 @@
+{
+ "type": "int32",
+ "data": [
+ 3737,
+ 328,
+ 18605,
+ 32512,
+ 10768,
+ -5952,
+ -6136,
+ -5377,
+ 20579,
+ -11717,
+ -21826,
+ -10860,
+ -31280,
+ -25812,
+ -26867,
+ 17796,
+ 14572,
+ 12895,
+ -2499,
+ 14225,
+ -22199,
+ 26255,
+ 68,
+ 28708,
+ -22787,
+ -175,
+ 12866,
+ -287,
+ -3529,
+ -21875,
+ -7798,
+ -17121,
+ -13009,
+ 12039,
+ 8538,
+ 7025,
+ -9057,
+ 30126,
+ -27024,
+ -10316,
+ -25035,
+ -10555,
+ 30270,
+ -8765,
+ 26776,
+ -324,
+ 13088,
+ -2791,
+ -15344,
+ 17316,
+ 30747,
+ -15498,
+ 18268
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_53_i16_outi8/test.json b/operators/type_conversion/cast/cast_53_i16_outi8/test.json
new file mode 100644
index 000000000..854c8853f
--- /dev/null
+++ b/operators/type_conversion/cast/cast_53_i16_outi8/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: [
+ 53
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 53
+ ],
+ type: "INT8"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}