aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0')
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/desc.json22
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/input-0.json453
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/test.json64
3 files changed, 539 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/desc.json
new file mode 100644
index 000000000..9a2684614
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_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": "Output DType is UINT16 and zero point not 0 or 32678",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/input-0.json
new file mode 100644
index 000000000..1efb5d61c
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/input-0.json
@@ -0,0 +1,453 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ [
+ -27886,
+ -11621,
+ -9162,
+ 31347
+ ],
+ [
+ -9302,
+ 13278,
+ 18278,
+ -19914
+ ],
+ [
+ 13095,
+ -12672,
+ -331,
+ -502
+ ],
+ [
+ 17453,
+ -17976,
+ -20274,
+ 16607
+ ],
+ [
+ -29946,
+ -20706,
+ 16328,
+ 23273
+ ]
+ ],
+ [
+ [
+ -29676,
+ -14278,
+ 7876,
+ 6409
+ ],
+ [
+ -3726,
+ -32391,
+ -29300,
+ -20842
+ ],
+ [
+ 5039,
+ -21577,
+ -28345,
+ 7694
+ ],
+ [
+ -19602,
+ -20921,
+ -24656,
+ -395
+ ],
+ [
+ -28843,
+ 3225,
+ 26450,
+ 23179
+ ]
+ ],
+ [
+ [
+ 19221,
+ -27077,
+ -26247,
+ -6998
+ ],
+ [
+ 10594,
+ 21267,
+ -13971,
+ 12277
+ ],
+ [
+ -29318,
+ 26404,
+ 16333,
+ -23377
+ ],
+ [
+ -2262,
+ 3325,
+ 10070,
+ -19879
+ ],
+ [
+ 24254,
+ 19030,
+ -19943,
+ -16592
+ ]
+ ],
+ [
+ [
+ -30510,
+ -10190,
+ -19747,
+ -3427
+ ],
+ [
+ -22536,
+ 14176,
+ -5014,
+ -11668
+ ],
+ [
+ 9743,
+ -6906,
+ -11399,
+ -22010
+ ],
+ [
+ 13719,
+ 31467,
+ 10197,
+ -16321
+ ],
+ [
+ 20822,
+ 27500,
+ -23021,
+ 1080
+ ]
+ ],
+ [
+ [
+ 8535,
+ 24604,
+ 17406,
+ 13016
+ ],
+ [
+ -12662,
+ -24234,
+ -13884,
+ 30625
+ ],
+ [
+ -1085,
+ -21314,
+ -3368,
+ 2340
+ ],
+ [
+ 25849,
+ 31935,
+ -15285,
+ 13070
+ ],
+ [
+ -7786,
+ 11583,
+ -22031,
+ -23112
+ ]
+ ],
+ [
+ [
+ -22370,
+ 12109,
+ 2543,
+ 9795
+ ],
+ [
+ -30633,
+ -378,
+ 19641,
+ 12146
+ ],
+ [
+ -31663,
+ 2121,
+ 16139,
+ 2012
+ ],
+ [
+ -28752,
+ 30124,
+ 9468,
+ -30999
+ ],
+ [
+ 10428,
+ -29852,
+ -4161,
+ -28464
+ ]
+ ],
+ [
+ [
+ 20535,
+ -15605,
+ 30482,
+ 25327
+ ],
+ [
+ -25003,
+ 730,
+ -20516,
+ -4488
+ ],
+ [
+ -29527,
+ 17115,
+ 13695,
+ -16750
+ ],
+ [
+ -28979,
+ 10888,
+ -11997,
+ -17391
+ ],
+ [
+ -14858,
+ -6418,
+ 28451,
+ 10568
+ ]
+ ],
+ [
+ [
+ 31321,
+ -19075,
+ 5683,
+ -11707
+ ],
+ [
+ 7317,
+ 507,
+ -21929,
+ -19247
+ ],
+ [
+ -5979,
+ -28413,
+ 20684,
+ 32677
+ ],
+ [
+ 24645,
+ -19718,
+ 24731,
+ 6262
+ ],
+ [
+ 16872,
+ -4245,
+ 20820,
+ -10628
+ ]
+ ],
+ [
+ [
+ -19133,
+ -13035,
+ 27711,
+ -20734
+ ],
+ [
+ -26895,
+ -16828,
+ 3621,
+ -13278
+ ],
+ [
+ -32511,
+ -19287,
+ -32374,
+ 31565
+ ],
+ [
+ -27671,
+ -21493,
+ -29989,
+ 4825
+ ],
+ [
+ 1902,
+ 15079,
+ 9649,
+ 14539
+ ]
+ ],
+ [
+ [
+ -31683,
+ -32762,
+ -21441,
+ 19589
+ ],
+ [
+ -17671,
+ 21756,
+ 11094,
+ 12876
+ ],
+ [
+ -26693,
+ -16231,
+ 16419,
+ -15685
+ ],
+ [
+ -32267,
+ 17013,
+ -27277,
+ -15330
+ ],
+ [
+ -31809,
+ -8712,
+ 26745,
+ 8612
+ ]
+ ],
+ [
+ [
+ 13048,
+ 26440,
+ -6281,
+ 3124
+ ],
+ [
+ -2154,
+ -7452,
+ 21955,
+ 27418
+ ],
+ [
+ 6304,
+ 30994,
+ -2039,
+ 13549
+ ],
+ [
+ -25281,
+ 14751,
+ -32052,
+ 3708
+ ],
+ [
+ 5073,
+ 13736,
+ 32357,
+ -19833
+ ]
+ ],
+ [
+ [
+ -22447,
+ 3711,
+ -31239,
+ 8368
+ ],
+ [
+ 1184,
+ 12195,
+ -7120,
+ -4731
+ ],
+ [
+ 17185,
+ 7249,
+ -30159,
+ -2511
+ ],
+ [
+ -21632,
+ 13424,
+ -26827,
+ 15467
+ ],
+ [
+ -26770,
+ -28965,
+ 19975,
+ 27468
+ ]
+ ],
+ [
+ [
+ 17515,
+ 13030,
+ 7908,
+ 7884
+ ],
+ [
+ -26385,
+ 13150,
+ 11917,
+ 1138
+ ],
+ [
+ 29790,
+ 11824,
+ -9723,
+ 24131
+ ],
+ [
+ -3243,
+ 20001,
+ 3582,
+ 9815
+ ],
+ [
+ -8431,
+ -4790,
+ -17008,
+ -29066
+ ]
+ ],
+ [
+ [
+ -10218,
+ 19598,
+ -14545,
+ 30783
+ ],
+ [
+ 1466,
+ 20247,
+ -1431,
+ -7341
+ ],
+ [
+ -15087,
+ 15574,
+ -32593,
+ -10885
+ ],
+ [
+ -29889,
+ 15806,
+ -24587,
+ -21570
+ ],
+ [
+ -4373,
+ -12613,
+ 27140,
+ -154
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/test.json
new file mode 100644
index 000000000..01be3df22
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/test.json
@@ -0,0 +1,64 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -127,
+ multiplier: [
+ 22946
+ ],
+ shift: [
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 14,
+ 5,
+ 4
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 14,
+ 5,
+ 4
+ ],
+ type: "UINT16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}