diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-02-14 11:47:19 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-02-22 16:35:47 +0000 |
commit | f42c430ce7d8c7c3fa412ba48c5e602def6f639c (patch) | |
tree | f0448e37bab058f5b969b95c8dd310cdc7b2dc0e /operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32 | |
parent | 36989d315242a1c9296bb434ea0691b1304420b0 (diff) | |
download | conformance_tests-f42c430ce7d8c7c3fa412ba48c5e602def6f639c.tar.gz |
Create MI tests for Tensor: FFT2D & RFFT2D
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Ieca8d91a9294f5cb23feb1fcf155349e08d45bf0
Diffstat (limited to 'operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32')
3 files changed, 129 insertions, 0 deletions
diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32/desc.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32/desc.json new file mode 100644 index 000000000..f46abb501 --- /dev/null +++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32/desc.json @@ -0,0 +1,23 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0" + ], + "ifm_file": [ + "input-0.npy" + ], + "ofm_name": [ + "result-0", + "result-1" + ], + "ofm_file": [ + "result-0.npy", + "result-1.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "Mismatch between provided and expected output kernel (H, W) shape", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32/input-0.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32/input-0.json new file mode 100644 index 000000000..b3b257de1 --- /dev/null +++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32/input-0.json @@ -0,0 +1,39 @@ +{ + "type": "float32", + "data": [ + [ + [ + 0.14005540311336517, + 0.677708625793457 + ], + [ + 0.8144738674163818, + 0.2352563887834549 + ], + [ + 0.2762073576450348, + 0.9645189046859741 + ], + [ + 0.2645975947380066, + 0.4299570620059967 + ], + [ + 0.43251559138298035, + 0.2530347406864166 + ], + [ + 0.7757911086082458, + 0.7718493342399597 + ], + [ + 0.37831801176071167, + 0.8351258039474487 + ], + [ + 0.2130749374628067, + 0.004305775742977858 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32/test.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32/test.json new file mode 100644 index 000000000..b190f208a --- /dev/null +++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_FFTOutputShapeMismatch_1x8x2_f32/test.json @@ -0,0 +1,67 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "RFFT2D", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0", + "result-1" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 8, + 2 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 1, + 8, + 8 + ], + type: "FP32" + }, + { + name: "result-1", + shape: [ + 1, + 8, + 8 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0", + "result-1" + ] + } + ] + } + ] +} |