From 874bb4fe493b2958a21e9a84c22828e82d4ff167 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Wed, 16 Nov 2022 14:39:55 +0000 Subject: Updating conformance files for BF16 support Signed-off-by: Jeremy Johnson Change-Id: Iabe3a47a30eaea83f29b160ae2227e57ec22e96d --- .../desc.json | 24 + .../input-0.json | 577 +++++++++++++++++++++ .../input-1.json | 357 +++++++++++++ .../test.json | 65 +++ 4 files changed, 1023 insertions(+) create mode 100644 operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/desc.json create mode 100644 operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/input-0.json create mode 100644 operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/input-1.json create mode 100644 operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/test.json (limited to 'operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse') diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/desc.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/desc.json new file mode 100644 index 000000000..33c84b150 --- /dev/null +++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/desc.json @@ -0,0 +1,24 @@ +{ + "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": 2, + "expected_failure": true, + "expected_failure_desc": "Input data type not supported for this operator", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/input-0.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/input-0.json new file mode 100644 index 000000000..d8d2134bf --- /dev/null +++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/input-0.json @@ -0,0 +1,577 @@ +{ + "type": "int64", + "data": [ + [ + [ + -126253224612499, + 126615712580701, + 85437210320708 + ], + [ + -129647802411579, + 100747146569557, + -2542582724620 + ], + [ + 68776825481598, + 23469771994081, + 51410945149764 + ], + [ + -48917032862133, + 5524833234529, + -85190168987412 + ], + [ + -29082606645484, + -114392235991786, + 45457509567829 + ], + [ + -123949217795652, + -57335308449788, + -112198230371084 + ], + [ + 46630091012633, + -8889179965991, + -38115417426503 + ], + [ + -7224385036866, + -95350846861809, + 110097836221179 + ], + [ + -43188317849215, + 48099729909388, + 125446439667777 + ], + [ + -105671259264958, + 49816935429759, + -138539863844886 + ] + ], + [ + [ + 126247549300423, + -45419267393426, + -58953415650478 + ], + [ + -54330637772198, + 137918058738343, + -57337040270695 + ], + [ + 115826485661945, + 112242745785344, + 99938678501692 + ], + [ + -96106699599563, + 44965533050146, + -33806783016702 + ], + [ + -7651959230442, + -97352393249953, + 134326214846933 + ], + [ + -65980772210250, + 100913898010976, + -123782186963099 + ], + [ + 82280872830957, + 83548325716878, + -67288823911752 + ], + [ + 18985132069002, + -56950094758995, + -81453300624529 + ], + [ + 33280173564422, + 63426361323215, + 59844586114973 + ], + [ + 95272376329980, + 60584911795570, + -33087937263966 + ] + ], + [ + [ + 134883080560800, + 128306303652512, + -13531294999001 + ], + [ + 132617857099324, + 135988619018022, + 68551144021863 + ], + [ + 86567058388501, + -108611673119404, + -64660105966737 + ], + [ + -106276673651083, + -97609389930144, + 78030323563263 + ], + [ + -83118775863180, + -34342360181489, + -17882644170119 + ], + [ + -121490188258018, + 101698346101126, + 97308101300730 + ], + [ + -135346037488839, + 25945502428385, + 27729728348759 + ], + [ + 35214205665077, + -67922187848772, + -93128944435129 + ], + [ + -116360791481604, + 62280103664077, + -2155707544505 + ], + [ + 31742643486424, + 16229107117705, + 44445985247622 + ] + ], + [ + [ + 57835771651845, + -81164982335936, + 52909335998137 + ], + [ + -63042671778632, + -132942286638383, + 89764030436939 + ], + [ + 70824604342006, + 71081128135858, + -34981919079472 + ], + [ + 76999912247527, + -59136663637287, + -56852226230036 + ], + [ + -37738968690320, + 62918295274625, + -70848852109628 + ], + [ + -119812777919759, + -67768124141317, + -11478611290189 + ], + [ + -50974966738430, + 61846554837191, + -118951914050594 + ], + [ + 43894394696458, + -52408676056671, + -88991192570981 + ], + [ + -75086031399733, + -84847982371846, + 101596465538463 + ], + [ + -57575243610581, + 88048905343639, + -59069636476329 + ] + ], + [ + [ + -139682236691918, + -138812853736211, + -37229570819080 + ], + [ + 99697721116863, + 25816287907196, + 50526407095547 + ], + [ + -24016414545816, + -63243354003980, + 40233211920497 + ], + [ + 22363812440407, + -130933597319310, + 14945072591094 + ], + [ + 36799285037121, + -37036077863020, + -44486171886428 + ], + [ + 80902115518252, + -36344834289367, + -60109682344970 + ], + [ + 80137554230206, + 136471126216382, + -88724710870199 + ], + [ + -34218900013153, + -139999074448898, + -4015642135732 + ], + [ + -61126762792873, + 91655015053023, + 117029386415887 + ], + [ + -108038302034668, + 102401423732013, + -80224386739462 + ] + ], + [ + [ + -54054204243764, + 108576881286275, + -37929966586713 + ], + [ + -135990437097057, + -126155351146401, + -45690670403936 + ], + [ + 108204521366166, + -115777855446107, + -85688169417130 + ], + [ + 131544318000758, + -24918488379378, + 104890654564952 + ], + [ + -32824763766824, + 5152833604808, + 125801486250264 + ], + [ + 128459241259200, + -94143548059640, + 49752172467502 + ], + [ + -21331011817426, + -98582946074406, + -133482908082873 + ], + [ + 2194487136674, + -114353466153295, + 123390085533705 + ], + [ + -70385434608989, + -16939052692466, + 63719365355557 + ], + [ + 2159273415359, + -34520859797839, + 36479776427854 + ] + ], + [ + [ + -85093650597725, + -2603535047260, + 130367338606636 + ], + [ + 80151936124891, + -46527944814949, + 116147955318953 + ], + [ + 105517518997659, + -64326576913361, + 122216172676198 + ], + [ + -4123244509625, + 121828989699150, + 13981635597934 + ], + [ + -113507738588975, + -101564446895564, + -603268130336 + ], + [ + -133747321434359, + 75549995435992, + -54134568651297 + ], + [ + -131925159011777, + 41842230828213, + 29741814136219 + ], + [ + -105109278967793, + -89716214419957, + 68518010908383 + ], + [ + -98206665377927, + -138922682302910, + 140656728603663 + ], + [ + -59060765663909, + 110071271066244, + -24185428003772 + ] + ], + [ + [ + 130260331477859, + -19736064727525, + 70172569422723 + ], + [ + 131067189618230, + -61273029904585, + -132377656151558 + ], + [ + -14456632372143, + 73546423204542, + 18015290994246 + ], + [ + 94365894534680, + -65666806759138, + -121615547977614 + ], + [ + -78554366720022, + -76351938073312, + -46369789324040 + ], + [ + -52978186298543, + -74810352046921, + -106445549356111 + ], + [ + 6145169036817, + 59503684648014, + 114933948029042 + ], + [ + -63115554941526, + 45187269968815, + 7757504309457 + ], + [ + 108053773660367, + 54905219306350, + -89240664121025 + ], + [ + -65772266911694, + 35039007111264, + 70701469348106 + ] + ], + [ + [ + -118585483796971, + 41201012104129, + -92768828255686 + ], + [ + 124675608264552, + 130535823424899, + 101106142829861 + ], + [ + 101481464323165, + 129799277773782, + -60216752175689 + ], + [ + 6365409296591, + -103046906224363, + -12334165013005 + ], + [ + -111279748703052, + 53948830729577, + -119439510058198 + ], + [ + 101209350490511, + 98958683010370, + 131060267311066 + ], + [ + -133072762317074, + 89681711749933, + -58308776087969 + ], + [ + -85602333165627, + 70524990503991, + -106942214880211 + ], + [ + 105777136671350, + 105645987085656, + 15751606010164 + ], + [ + -21748853528182, + 109628923245422, + 59777577167289 + ] + ], + [ + [ + -131677678225570, + -24764284451317, + -19765298912410 + ], + [ + 100245332403904, + 107734608887777, + 12262068300837 + ], + [ + -109137630881132, + 30702535429852, + -11138187544195 + ], + [ + -21695359235495, + 136324770028157, + 139562598149030 + ], + [ + -25445766214808, + 122323999230498, + -71887344860304 + ], + [ + -86273593991650, + 44113896301460, + 130813629914 + ], + [ + 69177441068018, + -109807865675788, + -4949457352924 + ], + [ + 51165149663379, + 301197144347, + -60143522777314 + ], + [ + 228819892361, + 23994361747404, + 14174260314123 + ], + [ + 18546131296659, + -16103561843903, + -47566986848359 + ] + ], + [ + [ + -120916655022113, + -127656045194697, + 9517359342308 + ], + [ + 100986516387708, + 80410922177511, + 10204495714222 + ], + [ + 39265646981296, + 134108143912382, + 131515434225453 + ], + [ + 139275322767446, + -136096528384187, + 38339323519071 + ], + [ + 68981679255971, + -111725184664113, + -38495420444989 + ], + [ + -94260462133867, + -32474904752609, + -16549074688123 + ], + [ + -90531109004960, + -1102224449685, + -87937683220350 + ], + [ + 118864772795230, + -93034058977648, + 3532252665776 + ], + [ + -43828183101958, + -21744712911193, + -31137908065122 + ], + [ + 134730651086486, + 46053277169819, + -127022748544567 + ] + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/input-1.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/input-1.json new file mode 100644 index 000000000..dd5a8ac61 --- /dev/null +++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/input-1.json @@ -0,0 +1,357 @@ +{ + "type": "int32", + "data": [ + [ + [ + 0 + ], + [ + 4 + ], + [ + 6 + ], + [ + 0 + ], + [ + 4 + ], + [ + 1 + ], + [ + 0 + ], + [ + 5 + ], + [ + 3 + ], + [ + 3 + ] + ], + [ + [ + 1 + ], + [ + 2 + ], + [ + 4 + ], + [ + 3 + ], + [ + 2 + ], + [ + 7 + ], + [ + 0 + ], + [ + 3 + ], + [ + 5 + ], + [ + 4 + ] + ], + [ + [ + 1 + ], + [ + 4 + ], + [ + 6 + ], + [ + 4 + ], + [ + 7 + ], + [ + 5 + ], + [ + 1 + ], + [ + 5 + ], + [ + 2 + ], + [ + 2 + ] + ], + [ + [ + 0 + ], + [ + 6 + ], + [ + 3 + ], + [ + 6 + ], + [ + 6 + ], + [ + 2 + ], + [ + 0 + ], + [ + 5 + ], + [ + 1 + ], + [ + 5 + ] + ], + [ + [ + 5 + ], + [ + 5 + ], + [ + 5 + ], + [ + 1 + ], + [ + 1 + ], + [ + 5 + ], + [ + 1 + ], + [ + 3 + ], + [ + 0 + ], + [ + 2 + ] + ], + [ + [ + 0 + ], + [ + 2 + ], + [ + 3 + ], + [ + 0 + ], + [ + 0 + ], + [ + 6 + ], + [ + 2 + ], + [ + 3 + ], + [ + 6 + ], + [ + 0 + ] + ], + [ + [ + 0 + ], + [ + 2 + ], + [ + 6 + ], + [ + 7 + ], + [ + 3 + ], + [ + 2 + ], + [ + 3 + ], + [ + 4 + ], + [ + 7 + ], + [ + 1 + ] + ], + [ + [ + 4 + ], + [ + 7 + ], + [ + 0 + ], + [ + 5 + ], + [ + 6 + ], + [ + 2 + ], + [ + 4 + ], + [ + 6 + ], + [ + 6 + ], + [ + 5 + ] + ], + [ + [ + 1 + ], + [ + 1 + ], + [ + 2 + ], + [ + 5 + ], + [ + 7 + ], + [ + 4 + ], + [ + 3 + ], + [ + 7 + ], + [ + 4 + ], + [ + 5 + ] + ], + [ + [ + 5 + ], + [ + 6 + ], + [ + 4 + ], + [ + 2 + ], + [ + 6 + ], + [ + 0 + ], + [ + 1 + ], + [ + 0 + ], + [ + 7 + ], + [ + 7 + ] + ], + [ + [ + 0 + ], + [ + 1 + ], + [ + 3 + ], + [ + 7 + ], + [ + 7 + ], + [ + 4 + ], + [ + 5 + ], + [ + 2 + ], + [ + 3 + ], + [ + 7 + ] + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/test.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/test.json new file mode 100644 index 000000000..a69943e0f --- /dev/null +++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_WrongInputType_11x10x3_i48_roundFalse/test.json @@ -0,0 +1,65 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "ARITHMETIC_RIGHT_SHIFT", + attribute_type: "ArithmeticRightShiftAttribute", + attribute: { + round: false + }, + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 10, + 3 + ], + type: "INT48" + }, + { + name: "input-1", + shape: [ + 11, + 10, + 1 + ], + type: "INT48" + }, + { + name: "result-0", + shape: [ + 11, + 10, + 3 + ], + type: "INT48" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1