diff options
author | James Ward <james.ward@arm.com> | 2023-02-21 10:37:24 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-02-22 16:36:06 +0000 |
commit | 8f523840638434699bb53e0c986a0f84b38f6b70 (patch) | |
tree | c9dc34dceabff01632f07e887323ddf3c0da9f3b /operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1 | |
parent | f42c430ce7d8c7c3fa412ba48c5e602def6f639c (diff) | |
download | conformance_tests-8f523840638434699bb53e0c986a0f84b38f6b70.tar.gz |
Create MI tests for Tensors: TRANSPOSE_CONV2D
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I9ce5f8b26e03d53ef62d07da139f532f39a31d4b
Diffstat (limited to 'operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1')
3 files changed, 185 insertions, 0 deletions
diff --git a/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1/desc.json b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1/desc.json new file mode 100644 index 000000000..59c8fbad4 --- /dev/null +++ b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1/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 stride dimension is smaller than zero", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1/input-0.json b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1/input-0.json new file mode 100644 index 000000000..9953557bc --- /dev/null +++ b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1/input-0.json @@ -0,0 +1,35 @@ +{ + "type": "float32", + "data": [ + [ + [ + [ + 0.9765625 + ], + [ + 0.1826171875 + ], + [ + 0.353515625 + ], + [ + 0.373046875 + ] + ], + [ + [ + 0.5 + ], + [ + 0.8671875 + ], + [ + 0.83203125 + ], + [ + 0.00994873046875 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1/test.json b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1/test.json new file mode 100644 index 000000000..54c99b3cf --- /dev/null +++ b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_StrideSmallerOne_1x2x4x1_bf16xbf16_accf32_st-5-5_pad0000_os1x-4x-14x1/test.json @@ -0,0 +1,129 @@ +{ + 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: "TRANSPOSE_CONV2D", + attribute_type: "TransposeConvAttribute", + attribute: { + out_pad: [ + 0, + 0, + 0, + 0 + ], + stride: [ + -5, + -5 + ], + output_shape: [ + 1, + -4, + -14, + 1 + ], + input_zp: 0, + weight_zp: 0 + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 2, + 4, + 1 + ], + type: "BF16" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 1, + 1 + ], + type: "BF16", + data: [ + 0, + 0, + 209, + 62 + ] + }, + { + name: "const-2", + shape: [ + 1 + ], + type: "FP32", + data: [ + 169, + 243, + 83, + 63 + ] + }, + { + name: "result-0", + shape: [ + 1, + -4, + -14, + 1 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |