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 | 125 +++++++++++++++++++++ .../input-1.json | 17 +++ .../test.json | 60 ++++++++++ 4 files changed, 226 insertions(+) create mode 100644 operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/desc.json create mode 100644 operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/input-0.json create mode 100644 operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/input-1.json create mode 100644 operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/test.json (limited to 'operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32') diff --git a/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/desc.json b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/desc.json new file mode 100644 index 000000000..a4740efbc --- /dev/null +++ b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/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": "Op input list does not match expected input", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/input-0.json b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/input-0.json new file mode 100644 index 000000000..c6116721e --- /dev/null +++ b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/input-0.json @@ -0,0 +1,125 @@ +{ + "type": "int32", + "data": [ + [ + 40540286, + 1332572588, + -384103346, + -1738050528, + 1095784940, + -265272312, + 1535164640, + 187809455, + -593439794, + 1239065771 + ], + [ + 1099441218, + -1476847821, + -1036450516, + 643900317, + 1842341236, + 1582582244, + -1441191520, + 1926848545, + -128978406, + 2076058464 + ], + [ + -1142290821, + 1834959910, + 255706015, + -653669275, + -674833733, + -1302427990, + 2115258165, + -334271938, + 636937127, + -1231314600 + ], + [ + -776921764, + 1838531478, + -1954606659, + -172682713, + 331992957, + -816689345, + 295608673, + 1804051340, + -620289440, + -864025246 + ], + [ + -1099677663, + -14069529, + 1653804680, + -177925068, + 737440834, + 1453671282, + -1617858098, + -65261300, + 2140137889, + -635215455 + ], + [ + -910464959, + -1613365990, + -1435416451, + 169437299, + 1159674225, + 711318146, + 231187392, + -1037011616, + 76943551, + 705293145 + ], + [ + -1181325652, + -163195569, + 382292580, + -1960213266, + 711232483, + -1958496156, + -276189206, + -1892459714, + -1015592451, + -363781026 + ], + [ + -1486825264, + 1374087158, + 1617132665, + -763290169, + 264290423, + 553623207, + -86097489, + 1481137009, + 1601946797, + 257166979 + ], + [ + 792919560, + 1819106724, + 1579255704, + -832013091, + 1865641242, + 38273670, + 1880610925, + 193346532, + 2052609346, + -1395296142 + ], + [ + 1200978497, + -2334522, + -1546792111, + 654995129, + 210233181, + -1719673975, + -1496931218, + 608552349, + 1993489493, + 108603572 + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/input-1.json b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/input-1.json new file mode 100644 index 000000000..5bec68666 --- /dev/null +++ b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/input-1.json @@ -0,0 +1,17 @@ +{ + "type": "int32", + "data": [ + [ + 12, + 11, + 23, + 12, + 17, + 27, + 25, + 30, + 23, + 11 + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/test.json b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/test.json new file mode 100644 index 000000000..993434d30 --- /dev/null +++ b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputList_10x10_i32/test.json @@ -0,0 +1,60 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "LOGICAL_RIGHT_SHIFT", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1", + "eiDummyInput" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 10 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 1, + 10 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 10, + 10 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1