aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1')
-rw-r--r--operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/Conformance-result-0.json27
-rw-r--r--operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/desc.json24
-rw-r--r--operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/input-0.json27
-rw-r--r--operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json102
4 files changed, 180 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/Conformance-result-0.json
new file mode 100644
index 000000000..32366443a
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/Conformance-result-0.json
@@ -0,0 +1,27 @@
+{
+ "type": "int32",
+ "data": [
+ -128,
+ 127,
+ 127,
+ -128,
+ 127,
+ -128,
+ 127,
+ -128,
+ 127,
+ 127,
+ -128,
+ -128,
+ 127,
+ 127,
+ -128,
+ -128,
+ -128,
+ 127,
+ -128,
+ 127,
+ -128,
+ 127
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/desc.json b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_22_i48_outi8_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_22_i48_outi8_sc0_dr0_pc1/input-0.json b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/input-0.json
new file mode 100644
index 000000000..f1b74148a
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/input-0.json
@@ -0,0 +1,27 @@
+{
+ "type": "int64",
+ "data": [
+ -124173097680226,
+ 27544024667713,
+ 88918287265342,
+ -121730239102174,
+ 3446090007107,
+ -67960112657539,
+ 45859156201951,
+ -107332779220729,
+ 123019041269339,
+ 111106218345184,
+ -88390342852035,
+ -49746231082311,
+ 24667052449504,
+ 61379091125596,
+ -16140896797263,
+ -96745392146285,
+ -111421449062785,
+ 140671436568758,
+ -12567260576875,
+ 104858365415553,
+ -4960713686569,
+ 118883106473303
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json
new file mode 100644
index 000000000..3954a0f9d
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json
@@ -0,0 +1,102 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 16,
+ multiplier: [
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384
+ ],
+ shift: [
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 22
+ ],
+ type: "INT48"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 22
+ ],
+ type: "INT8"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}