From ab4bb694c6df1a837be89d0271fb21377a086658 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Thu, 13 Oct 2022 13:54:26 +0100 Subject: Updating CONV2D_1X1 tests for FP16 and accumulator types Signed-off-by: Jeremy Johnson Change-Id: Id1fb1687ffc4de1b92336ffbf65087c0d1ebf905 --- .../test.json | 325 +++++++++++++++++++++ 1 file changed, 325 insertions(+) create mode 100644 operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json (limited to 'operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json') diff --git a/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json new file mode 100644 index 000000000..9692c916d --- /dev/null +++ b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json @@ -0,0 +1,325 @@ +{ + 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: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: 0, + weight_zp: 90, + accum_dtype: "INT48" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 4, + 2, + 9 + ], + type: "INT16" + }, + { + name: "const-1", + shape: [ + 14, + 1, + 1, + 9 + ], + type: "INT8", + data: [ + 189, + 49, + 91, + 115, + 4, + 208, + 51, + 252, + 32, + 61, + 53, + 190, + 65, + 10, + 110, + 40, + 100, + 122, + 126, + 62, + 24, + 158, + 226, + 249, + 71, + 22, + 240, + 165, + 55, + 238, + 137, + 200, + 97, + 158, + 231, + 3, + 149, + 170, + 112, + 23, + 181, + 171, + 236, + 57, + 58, + 177, + 57, + 101, + 185, + 134, + 117, + 5, + 70, + 209, + 204, + 185, + 183, + 248, + 155, + 87, + 2, + 106, + 0, + 205, + 3, + 167, + 82, + 56, + 165, + 20, + 9, + 179, + 159, + 66, + 195, + 4, + 191, + 39, + 140, + 219, + 12, + 240, + 28, + 174, + 241, + 65, + 213, + 168, + 89, + 71, + 46, + 76, + 71, + 63, + 2, + 132, + 24, + 197, + 69, + 247, + 103, + 24, + 12, + 107, + 249, + 224, + 223, + 96, + 65, + 169, + 254, + 223, + 37, + 141, + 54, + 62, + 186, + 166, + 32, + 193, + 113, + 70, + 116, + 8, + 112, + 131 + ] + }, + { + name: "const-2", + shape: [ + 14 + ], + type: "INT48", + data: [ + 57, + 74, + 131, + 124, + 146, + 128, + 116, + 173, + 184, + 167, + 186, + 2, + 164, + 73, + 134, + 144, + 17, + 206, + 205, + 164, + 19, + 228, + 40, + 174, + 186, + 131, + 7, + 126, + 20, + 29, + 111, + 61, + 7, + 208, + 122, + 186, + 174, + 90, + 68, + 227, + 154, + 23, + 31, + 65, + 198, + 146, + 23, + 225, + 31, + 139, + 161, + 153, + 206, + 175, + 165, + 145, + 4, + 213, + 90, + 163, + 125, + 36, + 128, + 229, + 162, + 188, + 88, + 73, + 184, + 19, + 163, + 135, + 43, + 246, + 152, + 104, + 225, + 206, + 251, + 205, + 168, + 128, + 230, + 102 + ] + }, + { + name: "result-0", + shape: [ + 1, + 4, + 2, + 14 + ], + type: "FLOAT" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1