diff options
Diffstat (limited to 'operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse')
4 files changed, 216 insertions, 0 deletions
diff --git a/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/desc.json b/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/desc.json new file mode 100644 index 000000000..6ad351bd6 --- /dev/null +++ b/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/desc.json @@ -0,0 +1,25 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.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 real and imaginary input shapes", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/input-0.json b/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/input-0.json new file mode 100644 index 000000000..931ed99cb --- /dev/null +++ b/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/input-0.json @@ -0,0 +1,71 @@ +{ + "type": "float32", + "data": [ + [ + [ + 0.7038177251815796, + 0.28429868817329407 + ], + [ + 0.20447476208209991, + 0.29608792066574097 + ], + [ + 0.8757257461547852, + 0.29139018058776855 + ], + [ + 0.4628211259841919, + 0.7057380676269531 + ], + [ + 0.8719898462295532, + 0.658571183681488 + ], + [ + 0.7531092166900635, + 0.1733267903327942 + ], + [ + 0.8774078488349915, + 0.27571919560432434 + ], + [ + 0.12837816774845123, + 0.9762442708015442 + ], + [ + 0.20163992047309875, + 0.13665196299552917 + ], + [ + 0.6260209083557129, + 0.3188631534576416 + ], + [ + 0.13334921002388, + 0.6011211276054382 + ], + [ + 0.7589852213859558, + 0.7931983470916748 + ], + [ + 0.15551260113716125, + 0.5568670630455017 + ], + [ + 0.8136783838272095, + 0.1610870063304901 + ], + [ + 0.20768225193023682, + 0.0024113974068313837 + ], + [ + 0.5246341824531555, + 0.19468170404434204 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/input-1.json b/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/input-1.json new file mode 100644 index 000000000..cd2ca9cbb --- /dev/null +++ b/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/input-1.json @@ -0,0 +1,39 @@ +{ + "type": "float32", + "data": [ + [ + [ + 0.7242425680160522, + 0.9622138738632202 + ], + [ + 0.2087554931640625, + 0.6490970253944397 + ], + [ + 0.21183446049690247, + 0.018006859347224236 + ], + [ + 0.758554220199585, + 0.43400466442108154 + ], + [ + 0.9467868804931641, + 0.5342859029769897 + ], + [ + 0.15748286247253418, + 0.44977444410324097 + ], + [ + 0.20289179682731628, + 0.8780292868614197 + ], + [ + 0.6909031867980957, + 0.341238796710968 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/test.json b/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/test.json new file mode 100644 index 000000000..f600b2f93 --- /dev/null +++ b/operators/tensor/fft2d/fft2d_ERRORIF_FFTInputShapeMismatch_1x16x2_f32_inverseFalse/test.json @@ -0,0 +1,81 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "FFT2D", + attribute_type: "FFTAttribute", + attribute: { + inverse: false + }, + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0", + "result-1" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 16, + 2 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 1, + 8, + 2 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 1, + 16, + 2 + ], + type: "FP32" + }, + { + name: "result-1", + shape: [ + 1, + 16, + 2 + ], + type: "FP32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0", + "result-1" + ] + } + ] + } + ] +} |