diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-01-30 11:48:56 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-02-06 19:02:24 +0000 |
commit | 1a93a54b3e0498fd5d57182098b953dca2e3b992 (patch) | |
tree | c036788c06e99fb19f9f65c71f6d97c2dd1f3382 /operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00 | |
parent | 247295efaafba00330cf7dd5fbf0b17e92e7d312 (diff) | |
download | conformance_tests-1a93a54b3e0498fd5d57182098b953dca2e3b992.tar.gz |
Create MI tests for Tensor: CONV2D
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I383bcfcca6de3c6940d58721579f0fcc1d510774
Diffstat (limited to 'operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00')
3 files changed, 399 insertions, 0 deletions
diff --git a/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/desc.json b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/desc.json new file mode 100644 index 000000000..1700680f6 --- /dev/null +++ b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/desc.json @@ -0,0 +1,21 @@ +{ + "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": "At least one dilation is smaller than one", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/input-0.json b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/input-0.json new file mode 100644 index 000000000..e1b23b32f --- /dev/null +++ b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/input-0.json @@ -0,0 +1,99 @@ +{ + "type": "float32", + "data": [ + [ + [ + [ + 0.21060419082641602, + 0.30396026372909546, + 0.9689748883247375, + 0.4486706256866455, + 0.04445747658610344, + 0.2195848971605301, + 0.3424350917339325, + 0.999489426612854, + 0.3026915490627289 + ], + [ + 0.026395848020911217, + 0.5129215717315674, + 0.08360538631677628, + 0.27406761050224304, + 0.9923831820487976, + 0.7046385407447815, + 0.050666630268096924, + 0.44868671894073486, + 0.17163750529289246 + ], + [ + 0.1229446530342102, + 0.5870653986930847, + 0.5056558847427368, + 0.742866575717926, + 0.8923062086105347, + 0.24668185412883759, + 0.9229919910430908, + 0.5179917812347412, + 0.25883492827415466 + ], + [ + 0.8457858562469482, + 0.03552991896867752, + 0.5595093965530396, + 0.7216215133666992, + 0.2799776792526245, + 0.8634918928146362, + 0.24028456211090088, + 0.839874267578125, + 0.0785449668765068 + ] + ], + [ + [ + 0.1599275916814804, + 0.3809845745563507, + 0.8540555238723755, + 0.14458537101745605, + 0.8754382133483887, + 0.22973152995109558, + 0.4525083899497986, + 0.35273441672325134, + 0.11812622845172882 + ], + [ + 0.9443097114562988, + 0.43817830085754395, + 0.6903312802314758, + 0.5752676725387573, + 0.501715898513794, + 0.6165776252746582, + 0.8983423113822937, + 0.6993123888969421, + 0.5324800610542297 + ], + [ + 0.6451859474182129, + 0.6063942909240723, + 0.4331212043762207, + 0.6247640252113342, + 0.4435698091983795, + 0.7576143741607666, + 0.9689124822616577, + 0.9598653316497803, + 0.8207358121871948 + ], + [ + 0.6017588973045349, + 0.7493320107460022, + 0.1780482977628708, + 0.4790184497833252, + 0.25730475783348083, + 0.003494981210678816, + 0.9667375683784485, + 0.8638485670089722, + 0.5136986374855042 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/test.json b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/test.json new file mode 100644 index 000000000..93f8de2ad --- /dev/null +++ b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/test.json @@ -0,0 +1,279 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + 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: [ + 0, + 0 + ], + input_zp: 0, + weight_zp: 0 + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 2, + 4, + 9 + ], + type: "FP32" + }, + { + name: "const-1", + shape: [ + 4, + 1, + 1, + 9 + ], + type: "FP32", + data: [ + 64, + 32, + 130, + 62, + 211, + 102, + 49, + 63, + 63, + 158, + 222, + 62, + 81, + 168, + 77, + 63, + 107, + 224, + 127, + 63, + 245, + 186, + 178, + 62, + 203, + 68, + 122, + 62, + 92, + 230, + 136, + 62, + 81, + 44, + 191, + 61, + 108, + 192, + 201, + 62, + 252, + 190, + 142, + 60, + 56, + 72, + 234, + 61, + 180, + 27, + 139, + 62, + 17, + 179, + 35, + 62, + 199, + 110, + 59, + 63, + 83, + 71, + 216, + 61, + 202, + 177, + 93, + 63, + 215, + 107, + 98, + 62, + 194, + 100, + 222, + 61, + 87, + 150, + 37, + 60, + 173, + 23, + 55, + 63, + 69, + 99, + 131, + 62, + 128, + 110, + 2, + 63, + 244, + 150, + 228, + 61, + 91, + 60, + 124, + 63, + 219, + 100, + 0, + 62, + 244, + 231, + 210, + 62, + 180, + 5, + 90, + 63, + 165, + 195, + 122, + 62, + 135, + 176, + 136, + 62, + 211, + 249, + 78, + 63, + 45, + 243, + 139, + 62, + 155, + 44, + 60, + 59, + 130, + 23, + 219, + 62, + 123, + 96, + 77, + 60, + 38, + 232, + 104, + 63 + ] + }, + { + name: "const-2", + shape: [ + 4 + ], + type: "FP32", + data: [ + 223, + 77, + 36, + 63, + 108, + 64, + 21, + 63, + 123, + 109, + 78, + 62, + 172, + 47, + 51, + 63 + ] + }, + { + name: "result-0", + shape: [ + 1, + 2, + 4, + 4 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |