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 | 22 +++ .../input-0.json | 137 +++++++++++++++ .../test.json | 187 +++++++++++++++++++++ 3 files changed, 346 insertions(+) create mode 100644 operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/desc.json create mode 100644 operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/input-0.json create mode 100644 operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/test.json (limited to 'operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32') diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/desc.json new file mode 100644 index 000000000..2b74f86d0 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/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/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/input-0.json new file mode 100644 index 000000000..9fb3ef133 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/input-0.json @@ -0,0 +1,137 @@ +{ + "type": "int32", + "data": [ + [ + -23, + -125, + 12, + -33, + 86, + -22, + 28, + 84, + 21 + ], + [ + -29, + -35, + -106, + -78, + -97, + -73, + -98, + 47, + 26 + ], + [ + 73, + 7, + -51, + -65, + -105, + -80, + 0, + 104, + -35 + ], + [ + 22, + -61, + 87, + -109, + -61, + 125, + -7, + 70, + -63 + ], + [ + 83, + -88, + -19, + -29, + 107, + -128, + 117, + 99, + -48 + ], + [ + -13, + 62, + -97, + -59, + -9, + 78, + 94, + 0, + 117 + ], + [ + 119, + -128, + 20, + 121, + -61, + -46, + -48, + 52, + -18 + ], + [ + 64, + -36, + 104, + -62, + -24, + 91, + 68, + -33, + 47 + ], + [ + -12, + -45, + -54, + 83, + 79, + 100, + -27, + 17, + -105 + ], + [ + 81, + -85, + 31, + 94, + 74, + 81, + 30, + 115, + 49 + ], + [ + 39, + -119, + 35, + -104, + -29, + -23, + -24, + 74, + 49 + ], + [ + -112, + -32, + -125, + 80, + -73, + -20, + 92, + 63, + 99 + ] + ] +} \ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/test.json new file mode 100644 index 000000000..c0c8a7dc5 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/test.json @@ -0,0 +1,187 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: 35, + weight_zp: 93, + accum_dtype: "INT32" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0", + "eiDummyOutput" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12, + 9 + ], + type: "INT8" + }, + { + name: "const-1", + shape: [ + 7, + 9 + ], + type: "INT8", + data: [ + 215, + 203, + 254, + 46, + 99, + 52, + 101, + 128, + 95, + 223, + 167, + 166, + 227, + 216, + 146, + 195, + 254, + 147, + 200, + 124, + 110, + 0, + 244, + 165, + 108, + 188, + 171, + 137, + 100, + 204, + 235, + 144, + 201, + 191, + 126, + 239, + 183, + 43, + 188, + 85, + 109, + 142, + 249, + 191, + 90, + 162, + 233, + 217, + 248, + 173, + 159, + 188, + 46, + 106, + 119, + 36, + 130, + 93, + 106, + 11, + 13, + 81, + 217 + ] + }, + { + name: "const-2", + shape: [ + 7 + ], + type: "INT32", + data: [ + 215, + 31, + 133, + 217, + 144, + 105, + 246, + 62, + 60, + 165, + 148, + 190, + 5, + 153, + 0, + 84, + 238, + 33, + 126, + 12, + 160, + 7, + 47, + 206, + 141, + 78, + 48, + 113 + ] + }, + { + name: "result-0", + shape: [ + 12, + 7 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1