aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1')
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/Conformance-result-0.json33
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/desc.json24
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/input-0.json33
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/test.json114
4 files changed, 204 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/Conformance-result-0.json
new file mode 100644
index 000000000..07c1437f9
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/Conformance-result-0.json
@@ -0,0 +1,33 @@
+{
+ "type": "int32",
+ "data": [
+ 38,
+ 37,
+ 35,
+ 24,
+ 45,
+ 64,
+ 85,
+ 63,
+ 70,
+ 0,
+ 107,
+ 0,
+ 38,
+ 40,
+ 26,
+ 12,
+ 0,
+ 66,
+ 36,
+ 14,
+ 86,
+ 28,
+ 112,
+ 44,
+ 45,
+ 29,
+ 0,
+ 0
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/desc.json b/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/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_outu8_sc0_dr0_pc1/input-0.json b/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/input-0.json
new file mode 100644
index 000000000..182f9a231
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/input-0.json
@@ -0,0 +1,33 @@
+{
+ "type": "int32",
+ "data": [
+ 7,
+ -65,
+ -60,
+ -68,
+ 126,
+ 62,
+ 87,
+ 81,
+ 117,
+ -102,
+ 97,
+ -111,
+ -7,
+ 24,
+ -37,
+ -91,
+ -79,
+ 83,
+ -47,
+ -49,
+ 108,
+ -92,
+ 106,
+ 107,
+ 25,
+ -86,
+ -89,
+ -56
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/test.json
new file mode 100644
index 000000000..ff5d48bc3
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/test.json
@@ -0,0 +1,114 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 19,
+ output_zp: 39,
+ multiplier: [
+ 30275,
+ 22175,
+ 29043,
+ 22891,
+ 27988,
+ 19371,
+ 22306,
+ 25797,
+ 20840,
+ 16532,
+ 28672,
+ 27890,
+ 22793,
+ 23789,
+ 31031,
+ 32688,
+ 18718,
+ 27280,
+ 25823,
+ 24485,
+ 17162,
+ 26653,
+ 27311,
+ 27243,
+ 30305,
+ 25982,
+ 27642,
+ 29578
+ ],
+ shift: [
+ 18,
+ 20,
+ 19,
+ 17,
+ 19,
+ 15,
+ 15,
+ 16,
+ 16,
+ 15,
+ 15,
+ 15,
+ 19,
+ 17,
+ 17,
+ 17,
+ 15,
+ 16,
+ 19,
+ 16,
+ 15,
+ 18,
+ 15,
+ 19,
+ 15,
+ 18,
+ 15,
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28
+ ],
+ type: "UINT8"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}