aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0')
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/Conformance-result-0.json33
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/desc.json24
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/input-0.json33
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/test.json60
4 files changed, 150 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/Conformance-result-0.json
new file mode 100644
index 000000000..85e106d39
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/Conformance-result-0.json
@@ -0,0 +1,33 @@
+{
+ "type": "int32",
+ "data": [
+ -1663,
+ -7265,
+ 919,
+ -3107,
+ 263,
+ 2451,
+ -744,
+ -88,
+ -4727,
+ -4946,
+ -2932,
+ 1969,
+ -1707,
+ -3676,
+ 1138,
+ 1969,
+ 2538,
+ -4245,
+ 350,
+ -963,
+ -2582,
+ -3151,
+ -6302,
+ -4508,
+ -1444,
+ 2320,
+ 2101,
+ -5471
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_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_28_i8_outi16_sc1_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/input-0.json
new file mode 100644
index 000000000..c0f13d454
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/input-0.json
@@ -0,0 +1,33 @@
+{
+ "type": "int32",
+ "data": [
+ 7,
+ -121,
+ 66,
+ -26,
+ 51,
+ 101,
+ 28,
+ 43,
+ -63,
+ -68,
+ -22,
+ 90,
+ 6,
+ -39,
+ 71,
+ 90,
+ 103,
+ -52,
+ 53,
+ 23,
+ -14,
+ -27,
+ -99,
+ -58,
+ 12,
+ 98,
+ 93,
+ -80
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/test.json
new file mode 100644
index 000000000..7bfafcf98
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_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: 45,
+ output_zp: 0,
+ multiplier: [
+ 1468564992
+ ],
+ shift: [
+ 25
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}