aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2023-03-01 12:24:20 +0000
committerEric Kunze <eric.kunze@arm.com>2023-03-02 16:15:56 +0000
commitfde43724c4e354634566f93fa60d21048c1b7888 (patch)
tree36f7c9c934a4e02dc83b2e7c3417581b48b866bf /operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00
parent43f13e903970bc660d31c0f791007d13587e1c4d (diff)
downloadconformance_tests-fde43724c4e354634566f93fa60d21048c1b7888.tar.gz
Regen DATA LAYOUT tests for test gen improvements
PAD, SLICE, TILE and TRANSPOSE have improved ERROR IF tests. Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Id514aaff48d9710552fa8de27ff2045ff4107764
Diffstat (limited to 'operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00')
-rw-r--r--operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/desc.json21
-rw-r--r--operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/input-0.json18
-rw-r--r--operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/test.json68
3 files changed, 107 insertions, 0 deletions
diff --git a/operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/desc.json b/operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/desc.json
new file mode 100644
index 000000000..584857b19
--- /dev/null
+++ b/operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/desc.json
@@ -0,0 +1,21 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0"
+ ],
+ "ifm_file": [
+ "input-0.npy"
+ ],
+ "ofm_name": [
+ "result-0"
+ ],
+ "ofm_file": [
+ "result-0.npy"
+ ],
+ "expected_return_code": 2,
+ "expected_failure": true,
+ "expected_failure_desc": "Input Rank does not match output rank",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/input-0.json b/operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/input-0.json
new file mode 100644
index 000000000..63655c7a3
--- /dev/null
+++ b/operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/input-0.json
@@ -0,0 +1,18 @@
+{
+ "type": "float32",
+ "data": [
+ 0.16491250693798065,
+ 0.6032392382621765,
+ 0.5086535811424255,
+ 0.1184607446193695,
+ 0.8691179156303406,
+ 0.007586064748466015,
+ 0.9905798435211182,
+ 0.8178158402442932,
+ 0.6993750929832458,
+ 0.191402405500412,
+ 0.44360801577568054,
+ 0.22462481260299683,
+ 0.34243685007095337
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/test.json b/operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/test.json
new file mode 100644
index 000000000..8a081a601
--- /dev/null
+++ b/operators/data_layout/pad/pad_ERRORIF_RankMismatch_13_f32_pad00/test.json
@@ -0,0 +1,68 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "PAD",
+ attribute_type: "PadAttribute",
+ attribute: {
+ padding: [
+ 0,
+ 0
+ ],
+ pad_const_int: 0,
+ pad_const_fp: [
+ 245,
+ 92,
+ 222,
+ 61
+ ]
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 13
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 13,
+ 1,
+ 1,
+ 1
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}