aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2023-05-22 11:42:56 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2023-05-22 11:42:56 +0100
commitfa4f26105f770ff21a26b31aa78067297e2312fa (patch)
treec26b1482d7fa44eed6df954b7899a7e8c67a595e /operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred
parent7037332896b3151963a3e83f65acb40590c74199 (diff)
downloadconformance_tests-fa4f26105f770ff21a26b31aa78067297e2312fa.tar.gz
Update tests for one dimension of -1 in RESHAPE
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ia65988177fb6abece6dbaad5a0eb85e67741a67a
Diffstat (limited to 'operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred')
-rw-r--r--operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/desc.json21
-rw-r--r--operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/input-0.json145
-rw-r--r--operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/test.json62
3 files changed, 228 insertions, 0 deletions
diff --git a/operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/desc.json b/operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/desc.json
new file mode 100644
index 000000000..1c6a2b6a0
--- /dev/null
+++ b/operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/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": "Reshape inferred output tensor dimension is non-integer",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/input-0.json b/operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/input-0.json
new file mode 100644
index 000000000..e1481a17e
--- /dev/null
+++ b/operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/input-0.json
@@ -0,0 +1,145 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ 0.412109375,
+ 0.8212890625,
+ 0.75146484375,
+ 0.904296875,
+ 0.2247314453125,
+ 0.7939453125,
+ 0.0152130126953125,
+ 0.257080078125,
+ 0.307373046875,
+ 0.1318359375,
+ 0.88916015625,
+ 0.99560546875
+ ],
+ [
+ 0.8798828125,
+ 0.6455078125,
+ 0.9345703125,
+ 0.2469482421875,
+ 0.01544189453125,
+ 0.1617431640625,
+ 0.732421875,
+ 0.52734375,
+ 0.85791015625,
+ 0.50244140625,
+ 0.83740234375,
+ 0.442626953125
+ ],
+ [
+ 0.444580078125,
+ 0.010650634765625,
+ 0.7353515625,
+ 0.787109375,
+ 0.396240234375,
+ 0.2509765625,
+ 0.258056640625,
+ 0.68798828125,
+ 0.515625,
+ 0.059478759765625,
+ 0.1318359375,
+ 0.0233612060546875
+ ],
+ [
+ 0.896484375,
+ 0.955078125,
+ 0.44287109375,
+ 0.8671875,
+ 0.2332763671875,
+ 0.814453125,
+ 0.310302734375,
+ 0.24951171875,
+ 0.2012939453125,
+ 0.20556640625,
+ 0.78369140625,
+ 0.57080078125
+ ],
+ [
+ 0.80322265625,
+ 0.08441162109375,
+ 0.211669921875,
+ 0.689453125,
+ 0.0333251953125,
+ 0.49169921875,
+ 0.5595703125,
+ 0.432861328125,
+ 0.50390625,
+ 0.139892578125,
+ 0.064697265625,
+ 0.595703125
+ ],
+ [
+ 0.395751953125,
+ 0.640625,
+ 0.66357421875,
+ 0.2255859375,
+ 0.5068359375,
+ 0.5224609375,
+ 0.82275390625,
+ 0.865234375,
+ 0.284912109375,
+ 0.54052734375,
+ 0.1151123046875,
+ 0.619140625
+ ],
+ [
+ 0.91015625,
+ 0.79150390625,
+ 0.5029296875,
+ 0.7724609375,
+ 0.42529296875,
+ 0.1932373046875,
+ 0.175048828125,
+ 0.478515625,
+ 0.2447509765625,
+ 0.517578125,
+ 0.6474609375,
+ 0.1903076171875
+ ],
+ [
+ 0.7470703125,
+ 0.453857421875,
+ 0.5966796875,
+ 0.27783203125,
+ 0.86572265625,
+ 0.59912109375,
+ 0.61279296875,
+ 0.475830078125,
+ 0.40625,
+ 0.059783935546875,
+ 0.20849609375,
+ 0.916015625
+ ],
+ [
+ 0.48876953125,
+ 0.78271484375,
+ 0.342529296875,
+ 0.87109375,
+ 0.443115234375,
+ 0.7958984375,
+ 0.01064300537109375,
+ 0.9833984375,
+ 0.267333984375,
+ 0.1707763671875,
+ 0.65625,
+ 0.728515625
+ ],
+ [
+ 0.9130859375,
+ 0.3408203125,
+ 0.2457275390625,
+ 0.287841796875,
+ 0.70947265625,
+ 0.3564453125,
+ 0.80712890625,
+ 0.0295867919921875,
+ 0.91357421875,
+ 0.908203125,
+ 0.90625,
+ 0.1295166015625
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/test.json b/operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/test.json
new file mode 100644
index 000000000..c3032ff23
--- /dev/null
+++ b/operators/data_layout/reshape/reshape_ERRORIF_ReshapeOutputSizeNonInteger_10x12_f16_perm0_rank3_outinferred/test.json
@@ -0,0 +1,62 @@
+{
+ version: {
+ _major: 0,
+ _minor: 70,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESHAPE",
+ attribute_type: "ReshapeAttribute",
+ attribute: {
+ new_shape: [
+ 5,
+ -1,
+ 9
+ ]
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 12
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 5,
+ -1,
+ 9
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}