aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2023-02-14 11:47:19 +0000
committerEric Kunze <eric.kunze@arm.com>2023-02-22 16:35:47 +0000
commitf42c430ce7d8c7c3fa412ba48c5e602def6f639c (patch)
treef0448e37bab058f5b969b95c8dd310cdc7b2dc0e /operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32
parent36989d315242a1c9296bb434ea0691b1304420b0 (diff)
downloadconformance_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_KernelNotPowerOfTwo_1x5x9_f32')
-rw-r--r--operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32/desc.json23
-rw-r--r--operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32/input-0.json62
-rw-r--r--operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32/test.json67
3 files changed, 152 insertions, 0 deletions
diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32/desc.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32/desc.json
new file mode 100644
index 000000000..b7c2b796e
--- /dev/null
+++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_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": "kernel height and/or width not a power of two",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32/input-0.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32/input-0.json
new file mode 100644
index 000000000..dfb8a2098
--- /dev/null
+++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32/input-0.json
@@ -0,0 +1,62 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ 0.9300033450126648,
+ 0.4979318380355835,
+ 0.6429983973503113,
+ 0.8671723008155823,
+ 0.9988296627998352,
+ 0.6135165095329285,
+ 0.8897794485092163,
+ 0.9086082577705383,
+ 0.7914515137672424
+ ],
+ [
+ 0.4609313905239105,
+ 0.081154003739357,
+ 0.015805555507540703,
+ 0.47720062732696533,
+ 0.4943145215511322,
+ 0.4073624014854431,
+ 0.5681673288345337,
+ 0.5521627068519592,
+ 0.8366130590438843
+ ],
+ [
+ 0.108657106757164,
+ 0.22517766058444977,
+ 0.7930049896240234,
+ 0.8478368520736694,
+ 0.994824230670929,
+ 0.8729119896888733,
+ 0.8898990154266357,
+ 0.3143479526042938,
+ 0.40166163444519043
+ ],
+ [
+ 0.2680850923061371,
+ 0.6062994003295898,
+ 0.938805341720581,
+ 0.3446408808231354,
+ 0.5570017695426941,
+ 0.29629963636398315,
+ 0.16979996860027313,
+ 0.19518552720546722,
+ 0.05794534459710121
+ ],
+ [
+ 0.9492934942245483,
+ 0.40287959575653076,
+ 0.8341208696365356,
+ 0.6813294887542725,
+ 0.1919211596250534,
+ 0.1754622459411621,
+ 0.8119881749153137,
+ 0.2647117078304291,
+ 0.9132851958274841
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32/test.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32/test.json
new file mode 100644
index 000000000..5fcd147da
--- /dev/null
+++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_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,
+ 5,
+ 9
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 5,
+ 5
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-1",
+ shape: [
+ 1,
+ 5,
+ 5
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0",
+ "result-1"
+ ]
+ }
+ ]
+ }
+ ]
+}