aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0')
-rw-r--r--operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/Conformance-result-0.json28
-rw-r--r--operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/desc.json24
-rw-r--r--operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/input-0.json28
-rw-r--r--operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/test.json60
4 files changed, 140 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/Conformance-result-0.json
new file mode 100644
index 000000000..55e035972
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/Conformance-result-0.json
@@ -0,0 +1,28 @@
+{
+ "type": "int32",
+ "data": [
+ 424321450,
+ 37236547,
+ -360509574,
+ 114391026,
+ -434333415,
+ -584909919,
+ 161986868,
+ 18511592,
+ 313760196,
+ -189806972,
+ 433369643,
+ -96292466,
+ 291152535,
+ -488940222,
+ -492775214,
+ 345954442,
+ 408541577,
+ 541161904,
+ -214527172,
+ -584374843,
+ 587033374,
+ 124002148,
+ -309328329
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_23_i32_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_23_i32_outi32_sc0_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/input-0.json
new file mode 100644
index 000000000..ae7890f76
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/input-0.json
@@ -0,0 +1,28 @@
+{
+ "type": "int32",
+ "data": [
+ 1489865016,
+ 130743870,
+ -1265810630,
+ 401646411,
+ -1525018734,
+ -2053718535,
+ 568763535,
+ 64997358,
+ 1101665589,
+ -666444667,
+ 1521634767,
+ -338099278,
+ 1022286231,
+ -1716752552,
+ -1730217863,
+ 1214705080,
+ 1434459189,
+ 1900111788,
+ -753241507,
+ -2051839792,
+ 2061174349,
+ 435392700,
+ -1086104547
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/test.json
new file mode 100644
index 000000000..14af4f48b
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_23_i32_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: [
+ 18665
+ ],
+ shift: [
+ 16
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 23
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 23
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}