aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0')
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/desc.json22
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/input-0.json173
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/test.json62
3 files changed, 257 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/desc.json
new file mode 100644
index 000000000..2b74f86d0
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/desc.json
@@ -0,0 +1,22 @@
+{
+ "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": 2,
+ "expected_failure": true,
+ "expected_failure_desc": "Op output list does not match expected output",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/input-0.json
new file mode 100644
index 000000000..5a2153d6f
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/input-0.json
@@ -0,0 +1,173 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 30304,
+ 46783,
+ 52045,
+ 4118,
+ 34059,
+ 30312,
+ 5532,
+ 15747,
+ 45465,
+ 52380,
+ 447,
+ 51982
+ ],
+ [
+ 41870,
+ 62933,
+ 48181,
+ 32172,
+ 13869,
+ 65332,
+ 16222,
+ 23939,
+ 32405,
+ 21735,
+ 55988,
+ 2948
+ ],
+ [
+ 11901,
+ 53813,
+ 5103,
+ 20861,
+ 12523,
+ 22947,
+ 17659,
+ 10755,
+ 21267,
+ 28490,
+ 2353,
+ 9154
+ ],
+ [
+ 7126,
+ 32225,
+ 58170,
+ 19173,
+ 34844,
+ 2615,
+ 1641,
+ 12698,
+ 28408,
+ 24495,
+ 35769,
+ 2590
+ ],
+ [
+ 64183,
+ 65366,
+ 31034,
+ 17615,
+ 65005,
+ 13987,
+ 2646,
+ 21557,
+ 5560,
+ 62812,
+ 58584,
+ 28818
+ ],
+ [
+ 26260,
+ 24476,
+ 52683,
+ 25419,
+ 36455,
+ 24440,
+ 48938,
+ 50271,
+ 57723,
+ 7313,
+ 42463,
+ 51893
+ ],
+ [
+ 36608,
+ 42197,
+ 2213,
+ 49900,
+ 2097,
+ 48117,
+ 35565,
+ 59778,
+ 48473,
+ 37158,
+ 1788,
+ 21224
+ ],
+ [
+ 10614,
+ 6125,
+ 12580,
+ 23858,
+ 34960,
+ 49096,
+ 25708,
+ 46000,
+ 51,
+ 28790,
+ 9394,
+ 5765
+ ],
+ [
+ 30125,
+ 33329,
+ 44552,
+ 14036,
+ 34568,
+ 40350,
+ 55663,
+ 16878,
+ 9164,
+ 10656,
+ 16658,
+ 64471
+ ],
+ [
+ 26520,
+ 57286,
+ 59100,
+ 31476,
+ 52732,
+ 59438,
+ 48234,
+ 14832,
+ 63272,
+ 14533,
+ 16585,
+ 54518
+ ],
+ [
+ 62256,
+ 44271,
+ 33042,
+ 34289,
+ 13974,
+ 64999,
+ 40120,
+ 55434,
+ 11935,
+ 38959,
+ 6028,
+ 49978
+ ],
+ [
+ 10531,
+ 45588,
+ 3531,
+ 47177,
+ 2473,
+ 6209,
+ 51089,
+ 35380,
+ 14115,
+ 46234,
+ 25730,
+ 5757
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/test.json
new file mode 100644
index 000000000..4deb3f7c2
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_12x12_u16_outi16_sc0_dr0_pc0/test.json
@@ -0,0 +1,62 @@
+{
+ 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: [
+ 25641
+ ],
+ shift: [
+ 16
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 12
+ ],
+ type: "UINT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 12
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}