aboutsummaryrefslogtreecommitdiff
path: root/operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0...
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_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1
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_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1')
-rw-r--r--operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/desc.json21
-rw-r--r--operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/input-0.json761
-rw-r--r--operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/test.json70
3 files changed, 852 insertions, 0 deletions
diff --git a/operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/desc.json b/operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/desc.json
new file mode 100644
index 000000000..f85f87aa4
--- /dev/null
+++ b/operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/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": "Scale N value larger than maximum value",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/input-0.json b/operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/input-0.json
new file mode 100644
index 000000000..3a551fe36
--- /dev/null
+++ b/operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/input-0.json
@@ -0,0 +1,761 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ [
+ [
+ 0.767578125,
+ 0.056732177734375
+ ],
+ [
+ 0.10400390625,
+ 0.2064208984375
+ ],
+ [
+ 0.254150390625,
+ 0.6181640625
+ ],
+ [
+ 0.0019989013671875,
+ 0.57275390625
+ ],
+ [
+ 0.0411376953125,
+ 0.53369140625
+ ],
+ [
+ 0.73974609375,
+ 0.37646484375
+ ],
+ [
+ 0.6201171875,
+ 0.72265625
+ ],
+ [
+ 0.00603485107421875,
+ 0.56982421875
+ ],
+ [
+ 0.09002685546875,
+ 0.4765625
+ ],
+ [
+ 0.51171875,
+ 0.385986328125
+ ],
+ [
+ 0.78076171875,
+ 0.60009765625
+ ],
+ [
+ 0.45654296875,
+ 0.658203125
+ ],
+ [
+ 0.056640625,
+ 0.86669921875
+ ],
+ [
+ 0.0202484130859375,
+ 0.013153076171875
+ ]
+ ],
+ [
+ [
+ 0.73583984375,
+ 0.5029296875
+ ],
+ [
+ 0.369873046875,
+ 0.74462890625
+ ],
+ [
+ 0.744140625,
+ 0.53857421875
+ ],
+ [
+ 0.748046875,
+ 0.275634765625
+ ],
+ [
+ 0.021484375,
+ 0.166015625
+ ],
+ [
+ 0.086669921875,
+ 0.56201171875
+ ],
+ [
+ 0.83056640625,
+ 0.398193359375
+ ],
+ [
+ 0.23486328125,
+ 0.78173828125
+ ],
+ [
+ 0.048309326171875,
+ 0.80908203125
+ ],
+ [
+ 0.234130859375,
+ 0.62890625
+ ],
+ [
+ 0.9970703125,
+ 0.361083984375
+ ],
+ [
+ 0.11944580078125,
+ 0.1029052734375
+ ],
+ [
+ 0.84033203125,
+ 0.224853515625
+ ],
+ [
+ 0.2646484375,
+ 0.4609375
+ ]
+ ],
+ [
+ [
+ 0.01898193359375,
+ 0.91015625
+ ],
+ [
+ 0.88623046875,
+ 0.370849609375
+ ],
+ [
+ 0.93212890625,
+ 0.68603515625
+ ],
+ [
+ 0.923828125,
+ 0.6640625
+ ],
+ [
+ 0.1463623046875,
+ 0.10284423828125
+ ],
+ [
+ 0.72509765625,
+ 0.51904296875
+ ],
+ [
+ 0.77734375,
+ 0.63330078125
+ ],
+ [
+ 0.6474609375,
+ 0.8505859375
+ ],
+ [
+ 0.763671875,
+ 0.394775390625
+ ],
+ [
+ 0.5068359375,
+ 0.138671875
+ ],
+ [
+ 0.6259765625,
+ 0.27001953125
+ ],
+ [
+ 0.1058349609375,
+ 0.640625
+ ],
+ [
+ 0.2376708984375,
+ 0.88427734375
+ ],
+ [
+ 0.0386962890625,
+ 0.7451171875
+ ]
+ ],
+ [
+ [
+ 0.88916015625,
+ 0.39306640625
+ ],
+ [
+ 0.249267578125,
+ 0.6455078125
+ ],
+ [
+ 0.13037109375,
+ 0.86083984375
+ ],
+ [
+ 0.80810546875,
+ 0.9716796875
+ ],
+ [
+ 0.853515625,
+ 0.189453125
+ ],
+ [
+ 0.150390625,
+ 0.182861328125
+ ],
+ [
+ 0.384765625,
+ 0.91552734375
+ ],
+ [
+ 0.00021255016326904297,
+ 0.18505859375
+ ],
+ [
+ 0.090087890625,
+ 0.3623046875
+ ],
+ [
+ 0.7451171875,
+ 0.56884765625
+ ],
+ [
+ 0.216552734375,
+ 0.486328125
+ ],
+ [
+ 0.09906005859375,
+ 0.0926513671875
+ ],
+ [
+ 0.97607421875,
+ 0.31982421875
+ ],
+ [
+ 0.36376953125,
+ 0.87353515625
+ ]
+ ],
+ [
+ [
+ 0.424072265625,
+ 0.88037109375
+ ],
+ [
+ 0.282470703125,
+ 0.37353515625
+ ],
+ [
+ 0.857421875,
+ 0.419189453125
+ ],
+ [
+ 0.90966796875,
+ 0.810546875
+ ],
+ [
+ 0.34912109375,
+ 0.56640625
+ ],
+ [
+ 0.436767578125,
+ 0.0882568359375
+ ],
+ [
+ 0.5986328125,
+ 0.09246826171875
+ ],
+ [
+ 0.71484375,
+ 0.039794921875
+ ],
+ [
+ 0.654296875,
+ 0.75634765625
+ ],
+ [
+ 0.267822265625,
+ 0.432861328125
+ ],
+ [
+ 0.331298828125,
+ 0.442626953125
+ ],
+ [
+ 0.68310546875,
+ 0.86328125
+ ],
+ [
+ 0.271484375,
+ 0.4716796875
+ ],
+ [
+ 0.634765625,
+ 0.73193359375
+ ]
+ ],
+ [
+ [
+ 0.92431640625,
+ 0.2076416015625
+ ],
+ [
+ 0.15771484375,
+ 0.08831787109375
+ ],
+ [
+ 0.78173828125,
+ 0.93505859375
+ ],
+ [
+ 0.515625,
+ 0.439208984375
+ ],
+ [
+ 0.351806640625,
+ 0.10955810546875
+ ],
+ [
+ 0.85546875,
+ 0.2186279296875
+ ],
+ [
+ 0.69775390625,
+ 0.00738525390625
+ ],
+ [
+ 0.75048828125,
+ 0.72900390625
+ ],
+ [
+ 0.4150390625,
+ 0.0989990234375
+ ],
+ [
+ 0.448486328125,
+ 0.451416015625
+ ],
+ [
+ 0.63818359375,
+ 0.17041015625
+ ],
+ [
+ 0.51953125,
+ 0.89990234375
+ ],
+ [
+ 0.1390380859375,
+ 0.242431640625
+ ],
+ [
+ 0.1463623046875,
+ 0.1219482421875
+ ]
+ ],
+ [
+ [
+ 0.0190277099609375,
+ 0.262451171875
+ ],
+ [
+ 0.58837890625,
+ 0.83544921875
+ ],
+ [
+ 0.09814453125,
+ 0.1004638671875
+ ],
+ [
+ 0.72802734375,
+ 0.1815185546875
+ ],
+ [
+ 0.80712890625,
+ 0.10205078125
+ ],
+ [
+ 0.66796875,
+ 0.94091796875
+ ],
+ [
+ 0.64697265625,
+ 0.97998046875
+ ],
+ [
+ 0.54443359375,
+ 0.98876953125
+ ],
+ [
+ 0.2490234375,
+ 0.52197265625
+ ],
+ [
+ 0.72412109375,
+ 0.98046875
+ ],
+ [
+ 0.79736328125,
+ 0.91943359375
+ ],
+ [
+ 0.0892333984375,
+ 0.54150390625
+ ],
+ [
+ 0.6748046875,
+ 0.5185546875
+ ],
+ [
+ 0.74951171875,
+ 0.232666015625
+ ]
+ ],
+ [
+ [
+ 0.86279296875,
+ 0.939453125
+ ],
+ [
+ 0.55224609375,
+ 0.7587890625
+ ],
+ [
+ 0.18408203125,
+ 0.236328125
+ ],
+ [
+ 0.6923828125,
+ 0.251953125
+ ],
+ [
+ 0.06768798828125,
+ 0.9921875
+ ],
+ [
+ 0.50634765625,
+ 0.41259765625
+ ],
+ [
+ 0.33544921875,
+ 0.11798095703125
+ ],
+ [
+ 0.256591796875,
+ 0.98046875
+ ],
+ [
+ 0.85498046875,
+ 0.55517578125
+ ],
+ [
+ 0.039794921875,
+ 0.2113037109375
+ ],
+ [
+ 0.222900390625,
+ 0.81689453125
+ ],
+ [
+ 0.62255859375,
+ 0.0062103271484375
+ ],
+ [
+ 0.29052734375,
+ 0.94287109375
+ ],
+ [
+ 0.31591796875,
+ 0.947265625
+ ]
+ ],
+ [
+ [
+ 0.62255859375,
+ 0.251953125
+ ],
+ [
+ 0.99560546875,
+ 0.17431640625
+ ],
+ [
+ 0.63671875,
+ 0.0147857666015625
+ ],
+ [
+ 0.07257080078125,
+ 0.54833984375
+ ],
+ [
+ 0.8564453125,
+ 0.475341796875
+ ],
+ [
+ 0.80615234375,
+ 0.422119140625
+ ],
+ [
+ 0.38671875,
+ 0.142822265625
+ ],
+ [
+ 0.297607421875,
+ 0.72216796875
+ ],
+ [
+ 0.2734375,
+ 0.9267578125
+ ],
+ [
+ 0.53173828125,
+ 0.46630859375
+ ],
+ [
+ 0.45703125,
+ 0.64111328125
+ ],
+ [
+ 0.99609375,
+ 0.1748046875
+ ],
+ [
+ 0.82470703125,
+ 0.26806640625
+ ],
+ [
+ 0.282958984375,
+ 0.5537109375
+ ]
+ ],
+ [
+ [
+ 0.231201171875,
+ 0.2486572265625
+ ],
+ [
+ 0.2325439453125,
+ 0.477783203125
+ ],
+ [
+ 0.1126708984375,
+ 0.1375732421875
+ ],
+ [
+ 0.31298828125,
+ 0.9326171875
+ ],
+ [
+ 0.83447265625,
+ 0.4501953125
+ ],
+ [
+ 0.1622314453125,
+ 0.1837158203125
+ ],
+ [
+ 0.296875,
+ 0.89892578125
+ ],
+ [
+ 0.050537109375,
+ 0.171630859375
+ ],
+ [
+ 0.470947265625,
+ 0.52685546875
+ ],
+ [
+ 0.83447265625,
+ 0.1429443359375
+ ],
+ [
+ 0.0168609619140625,
+ 0.52490234375
+ ],
+ [
+ 0.73876953125,
+ 0.216064453125
+ ],
+ [
+ 0.477783203125,
+ 0.1002197265625
+ ],
+ [
+ 0.06292724609375,
+ 0.61865234375
+ ]
+ ],
+ [
+ [
+ 0.349609375,
+ 0.68896484375
+ ],
+ [
+ 0.1495361328125,
+ 0.72412109375
+ ],
+ [
+ 0.8681640625,
+ 0.06829833984375
+ ],
+ [
+ 0.306884765625,
+ 0.67333984375
+ ],
+ [
+ 0.99951171875,
+ 0.58349609375
+ ],
+ [
+ 0.347412109375,
+ 0.3642578125
+ ],
+ [
+ 0.7685546875,
+ 0.03485107421875
+ ],
+ [
+ 0.865234375,
+ 0.8837890625
+ ],
+ [
+ 0.322509765625,
+ 0.1715087890625
+ ],
+ [
+ 0.18359375,
+ 0.642578125
+ ],
+ [
+ 0.72802734375,
+ 0.51611328125
+ ],
+ [
+ 0.7314453125,
+ 0.3896484375
+ ],
+ [
+ 0.533203125,
+ 0.2138671875
+ ],
+ [
+ 0.56640625,
+ 0.71142578125
+ ]
+ ],
+ [
+ [
+ 0.5703125,
+ 0.625
+ ],
+ [
+ 0.7314453125,
+ 0.75927734375
+ ],
+ [
+ 0.62060546875,
+ 0.361083984375
+ ],
+ [
+ 0.5576171875,
+ 0.9814453125
+ ],
+ [
+ 0.7646484375,
+ 0.71435546875
+ ],
+ [
+ 0.37841796875,
+ 0.8515625
+ ],
+ [
+ 0.79345703125,
+ 0.93505859375
+ ],
+ [
+ 0.361572265625,
+ 0.138916015625
+ ],
+ [
+ 0.450439453125,
+ 0.1651611328125
+ ],
+ [
+ 0.125244140625,
+ 0.44677734375
+ ],
+ [
+ 0.9443359375,
+ 0.26025390625
+ ],
+ [
+ 0.7958984375,
+ 0.255859375
+ ],
+ [
+ 0.7919921875,
+ 0.4765625
+ ],
+ [
+ 0.939453125,
+ 0.67333984375
+ ]
+ ],
+ [
+ [
+ 0.0653076171875,
+ 0.59033203125
+ ],
+ [
+ 0.30322265625,
+ 0.224365234375
+ ],
+ [
+ 0.810546875,
+ 0.07623291015625
+ ],
+ [
+ 0.386474609375,
+ 0.52734375
+ ],
+ [
+ 0.0692138671875,
+ 0.340087890625
+ ],
+ [
+ 0.348388671875,
+ 0.7783203125
+ ],
+ [
+ 0.8017578125,
+ 0.8330078125
+ ],
+ [
+ 0.09808349609375,
+ 0.67578125
+ ],
+ [
+ 0.7978515625,
+ 0.63232421875
+ ],
+ [
+ 0.428955078125,
+ 0.6875
+ ],
+ [
+ 0.52978515625,
+ 0.662109375
+ ],
+ [
+ 0.3486328125,
+ 0.9853515625
+ ],
+ [
+ 0.43212890625,
+ 0.66064453125
+ ],
+ [
+ 0.443359375,
+ 0.26953125
+ ]
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/test.json b/operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/test.json
new file mode 100644
index 000000000..a041b911f
--- /dev/null
+++ b/operators/image/resize/resize_ERRORIF_ScaleNLargerMax_1x13x14x2_f16_modeB_outf16_sc2049x1x3x1_off0x0_bor0x1/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: [
+ 2049,
+ 1,
+ 3,
+ 1
+ ],
+ offset: [
+ 0,
+ 0
+ ],
+ border: [
+ 0,
+ 1
+ ],
+ mode: "BILINEAR"
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 13,
+ 14,
+ 2
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 16383,
+ 41,
+ 2
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}