aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0')
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/Conformance-result-0.json31
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/desc.json24
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/input-0.json31
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/test.json60
4 files changed, 146 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/Conformance-result-0.json
new file mode 100644
index 000000000..4b63c352c
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/Conformance-result-0.json
@@ -0,0 +1,31 @@
+{
+ "type": "int32",
+ "data": [
+ -5817658,
+ -5852469,
+ 48654540,
+ -15253690,
+ -29534698,
+ -18575140,
+ -40948857,
+ -14561550,
+ -51791693,
+ -55055806,
+ 30040493,
+ -56710388,
+ 9151395,
+ 37557783,
+ 30124450,
+ -7238796,
+ -41116772,
+ 57797744,
+ 44978829,
+ 15059154,
+ -55457165,
+ -62380608,
+ -24798252,
+ -45961749,
+ 48359664,
+ -39480620
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/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/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/input-0.json
new file mode 100644
index 000000000..bfe390b2d
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/input-0.json
@@ -0,0 +1,31 @@
+{
+ "type": "int32",
+ "data": [
+ -2841,
+ -2858,
+ 23760,
+ -7449,
+ -14423,
+ -9071,
+ -19997,
+ -7111,
+ -25292,
+ -26886,
+ 14670,
+ -27694,
+ 4469,
+ 18341,
+ 14711,
+ -3535,
+ -20079,
+ 28225,
+ 21965,
+ 7354,
+ -27082,
+ -30463,
+ -12110,
+ -22445,
+ 23616,
+ -19280
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/test.json
new file mode 100644
index 000000000..fd4367602
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/test.json
@@ -0,0 +1,60 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 8191
+ ],
+ shift: [
+ 2
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 26
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 26
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}