diff options
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" + ] + } + ] + } + ] +} |