diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 13:54:26 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 13:54:26 +0100 |
commit | ab4bb694c6df1a837be89d0271fb21377a086658 (patch) | |
tree | 3072e003a6982722bc90e16fbd3b4e1faf2cf3e9 /operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12 | |
parent | d065e338624da04730c490bbaae208d111176f22 (diff) | |
download | conformance_tests-ab4bb694c6df1a837be89d0271fb21377a086658.tar.gz |
Updating CONV2D_1X1 tests for FP16 and accumulator types
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Id1fb1687ffc4de1b92336ffbf65087c0d1ebf905
Diffstat (limited to 'operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12')
3 files changed, 748 insertions, 0 deletions
diff --git a/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12/desc.json b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12/desc.json new file mode 100644 index 000000000..c2dcd4899 --- /dev/null +++ b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12/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": "Parameters do not yield exact integer output dimensions", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12/input-0.json b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12/input-0.json new file mode 100644 index 000000000..863a6a848 --- /dev/null +++ b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12/input-0.json @@ -0,0 +1,491 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + -21175, + -26272, + 25009, + 1163 + ], + [ + 11743, + -22645, + 23116, + -12700 + ], + [ + -2600, + 125, + 15976, + -25148 + ], + [ + 26680, + -25394, + 8999, + -19000 + ], + [ + 27745, + 6016, + 29173, + 28390 + ], + [ + -15223, + -17103, + -25394, + 14406 + ], + [ + -31154, + -20357, + 26801, + 8881 + ] + ], + [ + [ + -3229, + -23743, + 22615, + 22634 + ], + [ + -29742, + 15893, + -11203, + 11844 + ], + [ + -13447, + -31808, + 16644, + 22046 + ], + [ + 12054, + -22882, + -3269, + 2194 + ], + [ + 19235, + 18131, + 25424, + 8629 + ], + [ + 28824, + 20907, + -19652, + 13687 + ], + [ + -27186, + 16782, + -18260, + -13188 + ] + ], + [ + [ + 4853, + -7923, + 9671, + 95 + ], + [ + 8913, + 5646, + -19267, + 12561 + ], + [ + 30059, + 3642, + 7026, + 13792 + ], + [ + -27223, + -22889, + 3809, + -6905 + ], + [ + 12579, + 27086, + 18502, + -18550 + ], + [ + -12634, + -23354, + -26371, + 16043 + ], + [ + 12583, + -20026, + 13423, + -2779 + ] + ], + [ + [ + 24647, + 13882, + -15034, + -993 + ], + [ + -17469, + 26313, + 944, + 24782 + ], + [ + 730, + 193, + -20649, + 30202 + ], + [ + 11317, + -13647, + 22260, + -17440 + ], + [ + -26419, + 11157, + 16271, + 4769 + ], + [ + 13992, + -16312, + -14570, + -8446 + ], + [ + -19166, + -17497, + -29648, + -17238 + ] + ], + [ + [ + 3108, + -8679, + -4640, + 27801 + ], + [ + -32349, + 21947, + -30597, + 813 + ], + [ + -24239, + -1457, + 25862, + -30706 + ], + [ + 442, + -2471, + -3194, + 8111 + ], + [ + -11385, + 18257, + -17165, + -9439 + ], + [ + -2068, + 27485, + 2198, + 22294 + ], + [ + -23615, + -27379, + 103, + 26407 + ] + ], + [ + [ + -17429, + -18165, + -23059, + 27742 + ], + [ + -26734, + 8564, + -7847, + -5773 + ], + [ + 13813, + -4165, + -31257, + 4114 + ], + [ + -31084, + 22536, + 29207, + 22080 + ], + [ + -5660, + -5577, + 5573, + 22873 + ], + [ + 16595, + -1839, + 20409, + -5404 + ], + [ + 17675, + -16827, + -3047, + 21491 + ] + ], + [ + [ + -16622, + 7868, + -14396, + -4515 + ], + [ + -11516, + 10641, + 16737, + 23659 + ], + [ + -9446, + -19804, + 28241, + -7049 + ], + [ + 9991, + -7845, + 21909, + -27786 + ], + [ + -30152, + -10875, + -5573, + 17156 + ], + [ + -1945, + -16166, + -27795, + 20376 + ], + [ + 589, + 29835, + -11082, + -18090 + ] + ], + [ + [ + -14977, + -5921, + -23519, + -24161 + ], + [ + 19202, + 12592, + 106, + -1167 + ], + [ + -204, + 5813, + -14034, + 18264 + ], + [ + -32239, + 18099, + 19209, + 1046 + ], + [ + -13419, + 25055, + 20881, + 28307 + ], + [ + -31698, + 8566, + -32295, + -30251 + ], + [ + -28677, + 18085, + 14889, + 25684 + ] + ], + [ + [ + 8832, + 3711, + -20859, + 13130 + ], + [ + 26931, + -9435, + 12874, + 137 + ], + [ + 1401, + 19536, + -13694, + 24638 + ], + [ + 31804, + -25218, + 739, + -31642 + ], + [ + -10591, + -8285, + 10734, + -7149 + ], + [ + -9022, + 17912, + 16931, + -32205 + ], + [ + -10677, + 17301, + -26027, + 2380 + ] + ], + [ + [ + -521, + 12964, + 11548, + 606 + ], + [ + -5687, + 19052, + -7732, + -4125 + ], + [ + -5278, + -10103, + 8498, + 8946 + ], + [ + 26175, + -3641, + 17040, + -12883 + ], + [ + 30327, + 27102, + 5980, + 14632 + ], + [ + 5231, + -19866, + 28900, + 15735 + ], + [ + -5254, + -16227, + 11056, + -4505 + ] + ], + [ + [ + 21514, + -18520, + 1364, + -25343 + ], + [ + 13993, + -6615, + -20129, + 3609 + ], + [ + 4674, + -12969, + 28802, + -27853 + ], + [ + -10973, + -16408, + 27888, + -16669 + ], + [ + -18332, + 5947, + -15692, + -14278 + ], + [ + -16712, + 2213, + 16317, + -1944 + ], + [ + 25549, + -15312, + 22607, + 15808 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12/test.json b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12/test.json new file mode 100644 index 000000000..97e250be4 --- /dev/null +++ b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_ConvOutputShapeNonInteger_1x11x7x4_i16xi8_acci48_st22_pad1001_dilat12/test.json @@ -0,0 +1,235 @@ +{ + 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: [ + 1, + 0, + 0, + 1 + ], + stride: [ + 2, + 2 + ], + dilation: [ + 1, + 2 + ], + input_zp: 0, + weight_zp: -44, + accum_dtype: "INT48" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 11, + 7, + 4 + ], + type: "INT16" + }, + { + name: "const-1", + shape: [ + 12, + 1, + 1, + 4 + ], + type: "INT8", + data: [ + 146, + 42, + 126, + 46, + 194, + 238, + 94, + 209, + 249, + 23, + 83, + 117, + 52, + 239, + 233, + 42, + 146, + 241, + 219, + 110, + 90, + 195, + 39, + 245, + 84, + 254, + 36, + 58, + 82, + 56, + 203, + 61, + 209, + 59, + 115, + 248, + 100, + 167, + 236, + 94, + 58, + 211, + 0, + 156, + 80, + 160, + 16, + 254 + ] + }, + { + name: "const-2", + shape: [ + 12 + ], + type: "INT48", + data: [ + 48, + 158, + 39, + 2, + 10, + 237, + 228, + 21, + 213, + 225, + 220, + 41, + 17, + 229, + 21, + 56, + 163, + 28, + 45, + 11, + 170, + 89, + 127, + 155, + 81, + 70, + 252, + 185, + 247, + 203, + 95, + 31, + 87, + 244, + 112, + 101, + 193, + 188, + 76, + 80, + 69, + 68, + 156, + 246, + 202, + 201, + 219, + 94, + 202, + 43, + 24, + 251, + 160, + 133, + 191, + 186, + 14, + 165, + 126, + 105, + 118, + 179, + 232, + 155, + 111, + 92, + 202, + 155, + 255, + 110, + 200, + 243 + ] + }, + { + name: "result-0", + shape: [ + 1, + 6, + 4, + 12 + ], + type: "INT48" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |