From 79f9874824b35262af8939dad547e2aab4436812 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:44 +0100 Subject: Updating MUL tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I04e942d9017bb45e04c8fe343f652fb7b6b21dd3 --- .../Conformance-result-0.json | 405 +++++++++++++++++++++ .../mul/mul_2x11x4x2_i16_perm0_shift0/desc.json | 22 ++ .../mul/mul_2x11x4x2_i16_perm0_shift0/input-0.json | 405 +++++++++++++++++++++ .../mul/mul_2x11x4x2_i16_perm0_shift0/input-1.json | 317 ++++++++++++++++ .../mul/mul_2x11x4x2_i16_perm0_shift0/test.json | 68 ++++ 5 files changed, 1217 insertions(+) create mode 100644 operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/Conformance-result-0.json create mode 100644 operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/desc.json create mode 100644 operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/input-0.json create mode 100644 operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/input-1.json create mode 100644 operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/test.json (limited to 'operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0') diff --git a/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/Conformance-result-0.json b/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/Conformance-result-0.json new file mode 100644 index 000000000..f91775e3c --- /dev/null +++ b/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/Conformance-result-0.json @@ -0,0 +1,405 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 309273444, + -203954600 + ], + [ + -308010624, + -465636528 + ], + [ + -792977796, + -163694232 + ], + [ + -193607679, + 112849052 + ] + ], + [ + [ + 95336948, + -68156044 + ], + [ + 198678320, + -41561120 + ], + [ + 235719396, + -5135130 + ], + [ + 180450615, + -131427279 + ] + ], + [ + [ + -2542328, + 69700 + ], + [ + 278625507, + 191476123 + ], + [ + 53413152, + 69454352 + ], + [ + -30055664, + 5516412 + ] + ], + [ + [ + 34920792, + -159512962 + ], + [ + 74800748, + 215137516 + ], + [ + 4043900, + -5095650 + ], + [ + -139114854, + 452934828 + ] + ], + [ + [ + 427989100, + 685033580 + ], + [ + 458386777, + -81138603 + ], + [ + 100087665, + -153416640 + ], + [ + -214579828, + 30034358 + ] + ], + [ + [ + -1530405, + 15092811 + ], + [ + -82711976, + 99525536 + ], + [ + 97292316, + -66375144 + ], + [ + -17715142, + 11187244 + ] + ], + [ + [ + -513693400, + -282871002 + ], + [ + 613024740, + 811850164 + ], + [ + -456508608, + 285987528 + ], + [ + 77524005, + -253971350 + ] + ], + [ + [ + 424371225, + -169779275 + ], + [ + -451664916, + -391479501 + ], + [ + 602560110, + -13900210 + ], + [ + 2170674, + -366168 + ] + ], + [ + [ + -677087728, + -779680492 + ], + [ + 6435640, + 109349472 + ], + [ + 48262302, + 409387525 + ], + [ + 462054901, + 72627702 + ] + ], + [ + [ + -173855872, + 234184704 + ], + [ + -890171065, + -781482025 + ], + [ + 48569058, + 11938637 + ], + [ + -58973460, + -60414354 + ] + ], + [ + [ + 652676704, + -630420463 + ], + [ + 459821340, + -304523730 + ], + [ + -355018496, + -224660142 + ], + [ + 191004020, + -274118740 + ] + ] + ], + [ + [ + [ + -168858270, + -53390715 + ], + [ + 173879064, + 178917120 + ], + [ + 311982372, + -419030587 + ], + [ + 174140928, + 117341568 + ] + ], + [ + [ + -211907631, + 885974910 + ], + [ + -304298576, + -299223088 + ], + [ + 284431160, + 286020020 + ], + [ + 258608784, + -65719794 + ] + ], + [ + [ + -130193528, + -75148824 + ], + [ + 149350950, + 104544900 + ], + [ + 243623215, + 94442200 + ], + [ + -505425096, + 153258642 + ] + ], + [ + [ + -811906784, + 862300400 + ], + [ + -2949612, + -209294208 + ], + [ + 13369020, + 182075152 + ], + [ + 254341360, + 640123120 + ] + ], + [ + [ + 371642304, + -586115024 + ], + [ + -554610100, + -488951936 + ], + [ + -639446423, + 39170026 + ], + [ + 14980604, + -12507342 + ] + ], + [ + [ + -3446703, + -19851984 + ], + [ + -235104627, + -188753163 + ], + [ + -317730096, + -274119152 + ], + [ + 353934922, + 798087444 + ] + ], + [ + [ + 300305204, + -5039072 + ], + [ + 210800394, + -221908923 + ], + [ + -809483481, + 89292843 + ], + [ + -116193935, + 199510350 + ] + ], + [ + [ + -763454496, + -419418804 + ], + [ + -160204224, + 375943200 + ], + [ + -789724172, + 286074212 + ], + [ + -279967272, + -247868912 + ] + ], + [ + [ + -403572829, + -408450526 + ], + [ + -105259770, + -19938177 + ], + [ + -270880038, + 115378263 + ], + [ + 655265856, + -410529504 + ] + ], + [ + [ + -84327012, + 180189702 + ], + [ + 61402500, + -251657464 + ], + [ + -428499940, + 149101860 + ], + [ + 2006445, + 1449132 + ] + ], + [ + [ + 57843492, + -116074161 + ], + [ + 13372962, + -43685136 + ], + [ + 110580134, + 666882230 + ], + [ + 346852800, + -287886150 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/desc.json b/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/desc.json new file mode 100644 index 000000000..be172ba86 --- /dev/null +++ b/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/desc.json @@ -0,0 +1,22 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 0, + "expected_failure": false, + "expected_result_file": [ + "Conformance-result-0.npy" + ] +} \ No newline at end of file diff --git a/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/input-0.json b/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/input-0.json new file mode 100644 index 000000000..c1726e1e2 --- /dev/null +++ b/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/input-0.json @@ -0,0 +1,405 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + -20547, + 13550 + ], + [ + -13016, + -19677 + ], + [ + -30732, + -6344 + ], + [ + -7089, + 4132 + ] + ], + [ + [ + -19649, + 14047 + ], + [ + 11798, + -2468 + ], + [ + -20886, + 455 + ], + [ + 11455, + -8343 + ] + ], + [ + [ + -15502, + 425 + ], + [ + -9489, + -6521 + ], + [ + -9906, + -12881 + ], + [ + 14204, + -2607 + ] + ], + [ + [ + -2196, + 10031 + ], + [ + -9091, + -26147 + ], + [ + 23108, + -29118 + ], + [ + 4714, + -15348 + ] + ], + [ + [ + -18755, + -30019 + ], + [ + 26219, + -4641 + ], + [ + -10313, + 15808 + ], + [ + -30214, + 4229 + ] + ], + [ + [ + -355, + 3501 + ], + [ + -24646, + 29656 + ], + [ + -17141, + 11694 + ], + [ + 16193, + -10226 + ] + ], + [ + [ + -24200, + -13326 + ], + [ + 20115, + 26639 + ], + [ + 28632, + -17937 + ], + [ + 6981, + -22870 + ] + ], + [ + [ + 13785, + -5515 + ], + [ + 13996, + 12131 + ], + [ + 32295, + -745 + ], + [ + -10386, + 1752 + ] + ], + [ + [ + -22096, + -25444 + ], + [ + 1255, + 21324 + ], + [ + 2178, + 18475 + ], + [ + -21109, + -3318 + ] + ], + [ + [ + 7412, + -9984 + ], + [ + -31843, + -27955 + ], + [ + 28026, + 6889 + ], + [ + -15430, + -15807 + ] + ], + [ + [ + -30176, + 29147 + ], + [ + -25674, + 17003 + ], + [ + -17024, + -10773 + ], + [ + -14818, + 21266 + ] + ] + ], + [ + [ + [ + -30618, + -9681 + ], + [ + -14461, + -14880 + ], + [ + -20124, + 27029 + ], + [ + -7956, + -5361 + ] + ], + [ + [ + -7527, + 31470 + ], + [ + -10552, + -10376 + ], + [ + -11278, + -11341 + ], + [ + -26888, + 6833 + ] + ], + [ + [ + -31117, + -17961 + ], + [ + -19523, + -13666 + ], + [ + 16819, + 6520 + ], + [ + 32164, + -9753 + ] + ], + [ + [ + 28082, + -29825 + ], + [ + 276, + 19584 + ], + [ + 2085, + 28396 + ], + [ + -12152, + -30584 + ] + ], + [ + [ + 17952, + -28312 + ], + [ + 17350, + 15296 + ], + [ + 22561, + -1382 + ], + [ + 25918, + -21639 + ] + ], + [ + [ + -4303, + -24784 + ], + [ + 17489, + 14041 + ], + [ + 20079, + 17323 + ], + [ + -12554, + -28308 + ] + ], + [ + [ + 28129, + -472 + ], + [ + -26586, + 27987 + ], + [ + 32391, + -3573 + ], + [ + 17699, + -30390 + ] + ], + [ + [ + -26656, + -14644 + ], + [ + 10238, + -24025 + ], + [ + -30529, + 11059 + ], + [ + 17706, + 15676 + ] + ], + [ + [ + 19609, + 19846 + ], + [ + 6710, + 1271 + ], + [ + 23386, + -9961 + ], + [ + -26354, + 16511 + ] + ], + [ + [ + -14686, + 31381 + ], + [ + -5625, + 23054 + ], + [ + -29986, + 10434 + ], + [ + -3395, + -2452 + ] + ], + [ + [ + -15388, + 30879 + ], + [ + -7031, + 22968 + ], + [ + -4909, + -29605 + ], + [ + 24864, + -20637 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/input-1.json b/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/input-1.json new file mode 100644 index 000000000..8406b6699 --- /dev/null +++ b/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/input-1.json @@ -0,0 +1,317 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + -15052 + ], + [ + 23664 + ], + [ + 25803 + ], + [ + 27311 + ] + ], + [ + [ + -4852 + ], + [ + 16840 + ], + [ + -11286 + ], + [ + 15753 + ] + ], + [ + [ + 164 + ], + [ + -29363 + ], + [ + -5392 + ], + [ + -2116 + ] + ], + [ + [ + -15902 + ], + [ + -8228 + ], + [ + 175 + ], + [ + -29511 + ] + ], + [ + [ + -22820 + ], + [ + 17483 + ], + [ + -9705 + ], + [ + 7102 + ] + ], + [ + [ + 4311 + ], + [ + 3356 + ], + [ + -5676 + ], + [ + -1094 + ] + ], + [ + [ + 21227 + ], + [ + 30476 + ], + [ + -15944 + ], + [ + 11105 + ] + ], + [ + [ + 30785 + ], + [ + -32271 + ], + [ + 18658 + ], + [ + -209 + ] + ], + [ + [ + 30643 + ], + [ + 5128 + ], + [ + 22159 + ], + [ + -21889 + ] + ], + [ + [ + -23456 + ], + [ + 27955 + ], + [ + 1733 + ], + [ + 3822 + ] + ], + [ + [ + -21629 + ], + [ + -17910 + ], + [ + 20854 + ], + [ + -12890 + ] + ] + ], + [ + [ + [ + 5515 + ], + [ + -12024 + ], + [ + -15503 + ], + [ + -21888 + ] + ], + [ + [ + 28153 + ], + [ + 28838 + ], + [ + -25220 + ], + [ + -9618 + ] + ], + [ + [ + 4184 + ], + [ + -7650 + ], + [ + 14485 + ], + [ + -15714 + ] + ], + [ + [ + -28912 + ], + [ + -10687 + ], + [ + 6412 + ], + [ + -20930 + ] + ], + [ + [ + 20702 + ], + [ + -31966 + ], + [ + -28343 + ], + [ + 578 + ] + ], + [ + [ + 801 + ], + [ + -13443 + ], + [ + -15824 + ], + [ + -28193 + ] + ], + [ + [ + 10676 + ], + [ + -7929 + ], + [ + -24991 + ], + [ + -6565 + ] + ], + [ + [ + 28641 + ], + [ + -15648 + ], + [ + 25868 + ], + [ + -15812 + ] + ], + [ + [ + -20581 + ], + [ + -15687 + ], + [ + -11583 + ], + [ + -24864 + ] + ], + [ + [ + 5742 + ], + [ + -10916 + ], + [ + 14290 + ], + [ + -591 + ] + ], + [ + [ + -3759 + ], + [ + -1902 + ], + [ + -22526 + ], + [ + 13950 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/test.json b/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/test.json new file mode 100644 index 000000000..1480ae71b --- /dev/null +++ b/operators/ew_binary/mul/mul_2x11x4x2_i16_perm0_shift0/test.json @@ -0,0 +1,68 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "MUL", + attribute_type: "MulAttribute", + attribute: { + shift: 0 + }, + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 11, + 4, + 2 + ], + type: "INT16" + }, + { + name: "input-1", + shape: [ + 2, + 11, + 4, + 1 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 2, + 11, + 4, + 2 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1