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_BatchMismatch_1x4x2_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_BatchMismatch_1x4x2_f32')
3 files changed, 113 insertions, 0 deletions
diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32/desc.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32/desc.json new file mode 100644 index 000000000..18b5247f6 --- /dev/null +++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_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": "Input batch size not equal to output batch size", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32/input-0.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32/input-0.json new file mode 100644 index 000000000..86a4a6f6c --- /dev/null +++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32/input-0.json @@ -0,0 +1,23 @@ +{ + "type": "float32", + "data": [ + [ + [ + 0.31384676694869995, + 0.272804319858551 + ], + [ + 0.13089032471179962, + 0.4388217031955719 + ], + [ + 0.30296462774276733, + 0.3692728281021118 + ], + [ + 0.2359972596168518, + 0.763155460357666 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32/test.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32/test.json new file mode 100644 index 000000000..e699793d8 --- /dev/null +++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_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, + 4, + 2 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 2, + 4, + 2 + ], + type: "FP32" + }, + { + name: "result-1", + shape: [ + 2, + 4, + 2 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0", + "result-1" + ] + } + ] + } + ] +} |