aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16
diff options
context:
space:
mode:
Diffstat (limited to 'operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16')
-rw-r--r--operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/desc.json23
-rw-r--r--operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/input-0.json27
-rw-r--r--operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/test.json67
3 files changed, 117 insertions, 0 deletions
diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/desc.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/desc.json
new file mode 100644
index 000000000..23860740d
--- /dev/null
+++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/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 data type not supported for this operator",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/input-0.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/input-0.json
new file mode 100644
index 000000000..2333b8af9
--- /dev/null
+++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/input-0.json
@@ -0,0 +1,27 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ 0.5,
+ 0.1435546875,
+ 0.013916015625,
+ 0.2294921875,
+ 0.130859375,
+ 0.67578125,
+ 0.12158203125,
+ 0.50390625
+ ],
+ [
+ 0.69140625,
+ 0.578125,
+ 0.19921875,
+ 0.80078125,
+ 0.71484375,
+ 0.73828125,
+ 0.130859375,
+ 0.12353515625
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/test.json b/operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/test.json
new file mode 100644
index 000000000..fcc701d2f
--- /dev/null
+++ b/operators/tensor/rfft2d/rfft2d_ERRORIF_WrongInputType_1x2x8_bf16/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,
+ 2,
+ 8
+ ],
+ type: "BF16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 2,
+ 5
+ ],
+ type: "BF16"
+ },
+ {
+ name: "result-1",
+ shape: [
+ 1,
+ 2,
+ 5
+ ],
+ type: "BF16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0",
+ "result-1"
+ ]
+ }
+ ]
+ }
+ ]
+}