aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse
diff options
context:
space:
mode:
Diffstat (limited to 'operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse')
-rw-r--r--operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/desc.json25
-rw-r--r--operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/input-0.json62
-rw-r--r--operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/input-1.json62
-rw-r--r--operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/test.json81
4 files changed, 230 insertions, 0 deletions
diff --git a/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/desc.json b/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/desc.json
new file mode 100644
index 000000000..ed6097082
--- /dev/null
+++ b/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_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": "kernel height and/or width not a power of two",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/input-0.json b/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/input-0.json
new file mode 100644
index 000000000..693ebfa2b
--- /dev/null
+++ b/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/input-0.json
@@ -0,0 +1,62 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ 0.07508938014507294,
+ 0.4207477867603302,
+ 0.6686998605728149,
+ 0.8381670117378235,
+ 0.5659149289131165,
+ 0.6400726437568665,
+ 0.17726707458496094,
+ 0.03720603883266449,
+ 0.7916881442070007
+ ],
+ [
+ 0.1670382022857666,
+ 0.09116953611373901,
+ 0.9375623464584351,
+ 0.9635213613510132,
+ 0.6162573099136353,
+ 0.37863728404045105,
+ 0.8332395553588867,
+ 0.20471996068954468,
+ 0.42939233779907227
+ ],
+ [
+ 0.35701730847358704,
+ 0.9126999974250793,
+ 0.9197773933410645,
+ 0.6508859395980835,
+ 0.11074014008045197,
+ 0.4821927845478058,
+ 0.2453283667564392,
+ 0.8849156498908997,
+ 0.1384028047323227
+ ],
+ [
+ 0.05431027710437775,
+ 0.704429030418396,
+ 0.4532860815525055,
+ 0.8383648991584778,
+ 0.07462963461875916,
+ 0.8010761141777039,
+ 0.03733475133776665,
+ 0.028070012107491493,
+ 0.46131575107574463
+ ],
+ [
+ 0.22129128873348236,
+ 0.5937187075614929,
+ 0.025816993787884712,
+ 0.03538954257965088,
+ 0.7271484732627869,
+ 0.21016515791416168,
+ 0.6564171314239502,
+ 0.7499221563339233,
+ 0.05933116748929024
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/input-1.json b/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/input-1.json
new file mode 100644
index 000000000..7f9d8e300
--- /dev/null
+++ b/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/input-1.json
@@ -0,0 +1,62 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ 0.7697539329528809,
+ 0.2684212327003479,
+ 0.3895459473133087,
+ 0.08663919568061829,
+ 0.838629961013794,
+ 0.5607287883758545,
+ 0.5046652555465698,
+ 0.9685547947883606,
+ 0.33450576663017273
+ ],
+ [
+ 0.8907792568206787,
+ 0.7196878790855408,
+ 0.9285281300544739,
+ 0.9078020453453064,
+ 0.9910297989845276,
+ 0.13167674839496613,
+ 0.7960163950920105,
+ 0.8044943809509277,
+ 0.6443735361099243
+ ],
+ [
+ 0.2788609564304352,
+ 0.9651482701301575,
+ 0.20442213118076324,
+ 0.4995753765106201,
+ 0.5214871168136597,
+ 0.16182933747768402,
+ 0.7225288152694702,
+ 0.08886716514825821,
+ 0.6930977702140808
+ ],
+ [
+ 0.8486154675483704,
+ 0.3493964374065399,
+ 0.7094208002090454,
+ 0.15677401423454285,
+ 0.8459489941596985,
+ 0.952031672000885,
+ 0.15269368886947632,
+ 0.6918594837188721,
+ 0.5058311223983765
+ ],
+ [
+ 0.5314993262290955,
+ 0.7064897418022156,
+ 0.4887405037879944,
+ 0.600326418876648,
+ 0.23090101778507233,
+ 0.378506600856781,
+ 0.8652403354644775,
+ 0.1099025085568428,
+ 0.5975752472877502
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/test.json b/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_f32_inverseFalse/test.json
new file mode 100644
index 000000000..45ccf352d
--- /dev/null
+++ b/operators/tensor/fft2d/fft2d_ERRORIF_KernelNotPowerOfTwo_1x5x9_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,
+ 5,
+ 9
+ ],
+ type: "FP32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1,
+ 5,
+ 9
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 5,
+ 9
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-1",
+ shape: [
+ 1,
+ 5,
+ 9
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0",
+ "result-1"
+ ]
+ }
+ ]
+ }
+ ]
+}