aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32
diff options
context:
space:
mode:
Diffstat (limited to 'operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32')
-rw-r--r--operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32/desc.json23
-rw-r--r--operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32/input-0.json23
-rw-r--r--operators/tensor/rfft2d/rfft2d_ERRORIF_BatchMismatch_1x4x2_f32/test.json67
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"
+ ]
+ }
+ ]
+ }
+ ]
+}