aboutsummaryrefslogtreecommitdiff
path: root/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7...
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2022-12-15 13:50:37 +0000
committerEric Kunze <eric.kunze@arm.com>2022-12-15 16:42:48 +0000
commitff47fea5f558845c7ff6bd07e89318a108736aa2 (patch)
tree53a46a385374707ceb0eb5a885098120534aa097 /operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7
parent1aa23bd44af0ae508dc83d26e66dfc6d68d837f8 (diff)
downloadconformance_tests-ff47fea5f558845c7ff6bd07e89318a108736aa2.tar.gz
Create MI tests for Image: RESIZE
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I95efbad04b950f0aa0e4ea3729ec1da94502d6b3
Diffstat (limited to 'operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7')
-rw-r--r--operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/desc.json21
-rw-r--r--operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/input-0.json483
-rw-r--r--operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/test.json70
3 files changed, 574 insertions, 0 deletions
diff --git a/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/desc.json b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/desc.json
new file mode 100644
index 000000000..2a7e056fa
--- /dev/null
+++ b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/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 channel size not equal to output channel size",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/input-0.json b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/input-0.json
new file mode 100644
index 000000000..3f825cde5
--- /dev/null
+++ b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/input-0.json
@@ -0,0 +1,483 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ [
+ 0.27734375,
+ 0.6015625,
+ 0.515625,
+ 0.82421875,
+ 0.498046875,
+ 0.8671875,
+ 0.8671875,
+ 0.0615234375,
+ 0.8515625,
+ 0.14453125,
+ 0.67578125,
+ 0.2578125,
+ 0.1484375,
+ 0.038330078125
+ ],
+ [
+ 0.322265625,
+ 0.421875,
+ 0.353515625,
+ 0.07666015625,
+ 0.58203125,
+ 0.318359375,
+ 0.2890625,
+ 0.484375,
+ 0.66796875,
+ 0.65625,
+ 0.9609375,
+ 0.310546875,
+ 0.66796875,
+ 0.9453125
+ ]
+ ],
+ [
+ [
+ 0.85546875,
+ 0.150390625,
+ 0.73828125,
+ 0.53125,
+ 0.11767578125,
+ 0.1259765625,
+ 0.7421875,
+ 0.546875,
+ 0.4140625,
+ 0.9296875,
+ 0.498046875,
+ 0.267578125,
+ 0.59375,
+ 0.6796875
+ ],
+ [
+ 0.0167236328125,
+ 0.171875,
+ 0.0625,
+ 0.60546875,
+ 0.91015625,
+ 0.92578125,
+ 0.51171875,
+ 0.64453125,
+ 0.76953125,
+ 0.67578125,
+ 0.4296875,
+ 0.2412109375,
+ 0.9453125,
+ 0.01116943359375
+ ]
+ ],
+ [
+ [
+ 0.3359375,
+ 0.287109375,
+ 0.26953125,
+ 0.279296875,
+ 0.9296875,
+ 0.1845703125,
+ 0.84375,
+ 0.85546875,
+ 0.984375,
+ 0.69140625,
+ 0.19140625,
+ 0.84375,
+ 0.6171875,
+ 0.546875
+ ],
+ [
+ 0.89453125,
+ 0.142578125,
+ 0.396484375,
+ 0.291015625,
+ 0.265625,
+ 0.83984375,
+ 0.12158203125,
+ 0.197265625,
+ 0.166015625,
+ 0.70703125,
+ 0.65625,
+ 0.56640625,
+ 0.3203125,
+ 0.96484375
+ ]
+ ],
+ [
+ [
+ 0.0106201171875,
+ 0.330078125,
+ 0.384765625,
+ 0.470703125,
+ 0.69140625,
+ 0.12255859375,
+ 0.34765625,
+ 0.0615234375,
+ 0.546875,
+ 0.439453125,
+ 0.494140625,
+ 0.4375,
+ 0.58203125,
+ 0.9453125
+ ],
+ [
+ 0.3125,
+ 0.1826171875,
+ 0.306640625,
+ 0.9296875,
+ 0.2431640625,
+ 0.015625,
+ 0.57421875,
+ 0.028076171875,
+ 0.220703125,
+ 0.2890625,
+ 0.28515625,
+ 0.71484375,
+ 0.79296875,
+ 0.2197265625
+ ]
+ ],
+ [
+ [
+ 0.93359375,
+ 0.75,
+ 0.640625,
+ 0.96484375,
+ 0.6328125,
+ 0.111328125,
+ 0.55859375,
+ 0.058837890625,
+ 0.19921875,
+ 0.345703125,
+ 0.984375,
+ 0.95703125,
+ 0.1376953125,
+ 0.10498046875
+ ],
+ [
+ 0.375,
+ 0.9609375,
+ 0.96875,
+ 0.283203125,
+ 0.1796875,
+ 0.953125,
+ 0.1787109375,
+ 0.9921875,
+ 0.55078125,
+ 0.734375,
+ 0.220703125,
+ 0.640625,
+ 0.3046875,
+ 0.69921875
+ ]
+ ],
+ [
+ [
+ 0.515625,
+ 0.5625,
+ 0.4296875,
+ 0.35546875,
+ 0.43359375,
+ 0.1474609375,
+ 0.94921875,
+ 0.52734375,
+ 0.46875,
+ 0.59765625,
+ 0.357421875,
+ 0.060546875,
+ 0.2158203125,
+ 0.07470703125
+ ],
+ [
+ 0.10546875,
+ 0.8125,
+ 0.953125,
+ 0.875,
+ 0.212890625,
+ 0.71875,
+ 0.357421875,
+ 0.6171875,
+ 0.51953125,
+ 0.74609375,
+ 0.82421875,
+ 0.5546875,
+ 0.1611328125,
+ 0.3125
+ ]
+ ],
+ [
+ [
+ 0.546875,
+ 0.95703125,
+ 0.9609375,
+ 0.68359375,
+ 0.95703125,
+ 0.138671875,
+ 0.330078125,
+ 0.2734375,
+ 0.95703125,
+ 0.458984375,
+ 0.82421875,
+ 0.326171875,
+ 0.3671875,
+ 0.1689453125
+ ],
+ [
+ 0.94140625,
+ 0.7578125,
+ 0.2060546875,
+ 0.62890625,
+ 0.9453125,
+ 0.80078125,
+ 0.58203125,
+ 0.51953125,
+ 0.55859375,
+ 0.56640625,
+ 0.98046875,
+ 0.322265625,
+ 0.90625,
+ 0.287109375
+ ]
+ ],
+ [
+ [
+ 0.1357421875,
+ 0.400390625,
+ 0.59765625,
+ 0.154296875,
+ 0.474609375,
+ 0.55078125,
+ 0.6796875,
+ 0.3359375,
+ 0.2392578125,
+ 0.7734375,
+ 0.62109375,
+ 0.78515625,
+ 0.94921875,
+ 0.373046875
+ ],
+ [
+ 0.2294921875,
+ 0.77734375,
+ 0.38671875,
+ 0.380859375,
+ 0.1162109375,
+ 0.4765625,
+ 0.89453125,
+ 0.6328125,
+ 0.1328125,
+ 0.169921875,
+ 0.5078125,
+ 0.54296875,
+ 0.00604248046875,
+ 0.205078125
+ ]
+ ],
+ [
+ [
+ 0.890625,
+ 0.2578125,
+ 0.369140625,
+ 0.51953125,
+ 0.1669921875,
+ 0.83203125,
+ 0.97265625,
+ 0.80859375,
+ 0.357421875,
+ 0.049560546875,
+ 0.7109375,
+ 0.7109375,
+ 0.95703125,
+ 0.78125
+ ],
+ [
+ 0.72265625,
+ 0.65234375,
+ 0.67578125,
+ 0.671875,
+ 0.59765625,
+ 0.2470703125,
+ 0.458984375,
+ 0.0546875,
+ 0.5546875,
+ 0.515625,
+ 0.8125,
+ 0.50390625,
+ 0.33203125,
+ 0.8984375
+ ]
+ ],
+ [
+ [
+ 0.37890625,
+ 0.12890625,
+ 0.474609375,
+ 0.1240234375,
+ 0.59375,
+ 0.4765625,
+ 0.9921875,
+ 0.07373046875,
+ 0.75390625,
+ 0.58984375,
+ 0.1767578125,
+ 0.111328125,
+ 0.16015625,
+ 0.87890625
+ ],
+ [
+ 0.91796875,
+ 0.9453125,
+ 0.306640625,
+ 0.2490234375,
+ 0.166015625,
+ 0.50390625,
+ 0.30078125,
+ 0.8984375,
+ 0.5703125,
+ 0.087890625,
+ 0.37109375,
+ 0.89453125,
+ 0.44921875,
+ 0.96875
+ ]
+ ],
+ [
+ [
+ 0.75,
+ 0.283203125,
+ 0.70703125,
+ 0.6875,
+ 0.26953125,
+ 0.0703125,
+ 0.5234375,
+ 0.01483154296875,
+ 0.10693359375,
+ 0.87109375,
+ 0.42578125,
+ 0.310546875,
+ 0.9375,
+ 0.51953125
+ ],
+ [
+ 0.60546875,
+ 0.263671875,
+ 0.91796875,
+ 0.09619140625,
+ 0.2265625,
+ 0.44140625,
+ 0.474609375,
+ 0.357421875,
+ 0.54296875,
+ 0.2314453125,
+ 0.0380859375,
+ 0.95703125,
+ 0.60546875,
+ 0.68359375
+ ]
+ ],
+ [
+ [
+ 0.32421875,
+ 0.49609375,
+ 0.72265625,
+ 0.1630859375,
+ 0.27734375,
+ 0.28515625,
+ 0.11083984375,
+ 0.8203125,
+ 0.58984375,
+ 0.83203125,
+ 0.271484375,
+ 0.185546875,
+ 0.2421875,
+ 0.828125
+ ],
+ [
+ 0.193359375,
+ 0.451171875,
+ 0.32421875,
+ 0.361328125,
+ 0.486328125,
+ 0.8515625,
+ 0.486328125,
+ 0.453125,
+ 0.275390625,
+ 0.37890625,
+ 0.3984375,
+ 0.1953125,
+ 0.232421875,
+ 0.8515625
+ ]
+ ],
+ [
+ [
+ 0.2001953125,
+ 0.81640625,
+ 0.04541015625,
+ 0.11865234375,
+ 0.232421875,
+ 0.453125,
+ 0.1376953125,
+ 0.8359375,
+ 0.341796875,
+ 0.8046875,
+ 0.76953125,
+ 0.375,
+ 0.9140625,
+ 0.91796875
+ ],
+ [
+ 0.361328125,
+ 0.69921875,
+ 0.26171875,
+ 0.466796875,
+ 0.9140625,
+ 0.8125,
+ 0.9296875,
+ 0.51953125,
+ 0.87109375,
+ 0.427734375,
+ 0.89453125,
+ 0.11474609375,
+ 0.78125,
+ 0.298828125
+ ]
+ ],
+ [
+ [
+ 0.251953125,
+ 0.08740234375,
+ 0.78515625,
+ 0.2099609375,
+ 0.330078125,
+ 0.71875,
+ 0.62109375,
+ 0.94140625,
+ 0.51171875,
+ 0.53125,
+ 0.232421875,
+ 0.0869140625,
+ 0.0111083984375,
+ 0.484375
+ ],
+ [
+ 0.3828125,
+ 0.98046875,
+ 0.07958984375,
+ 0.2578125,
+ 0.1259765625,
+ 0.482421875,
+ 0.2275390625,
+ 0.11572265625,
+ 0.2255859375,
+ 0.0281982421875,
+ 0.1416015625,
+ 0.2421875,
+ 0.50390625,
+ 0.83984375
+ ]
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/test.json b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/test.json
new file mode 100644
index 000000000..8e39672c4
--- /dev/null
+++ b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x14x2x14_bf16_modeB_outbf16_sc16x1x16x1_off-7x-7_bor7x7/test.json
@@ -0,0 +1,70 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESIZE",
+ attribute_type: "ResizeAttribute",
+ attribute: {
+ scale: [
+ 16,
+ 1,
+ 16,
+ 1
+ ],
+ offset: [
+ -7,
+ -7
+ ],
+ border: [
+ 7,
+ 7
+ ],
+ mode: "BILINEAR"
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 14,
+ 2,
+ 14
+ ],
+ type: "BF16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 223,
+ 31,
+ 21
+ ],
+ type: "BF16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}