diff options
author | James Ward <james.ward@arm.com> | 2022-11-21 11:51:55 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2022-11-21 11:51:55 +0000 |
commit | d8e6b6b5148a3d61b378e6e5259ca421a709abef (patch) | |
tree | 2ec785497e47a644c12d57f22a306b0749d22735 /operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0 | |
parent | da333bee0fae850bf90f422d68902884b6063cce (diff) | |
download | conformance_tests-d8e6b6b5148a3d61b378e6e5259ca421a709abef.tar.gz |
Create MI tests for Data Layout: CONCAT, PAD, RESHAPE, REVERSE, SLICE, TILE, TRANSPOSE
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Icbbe8f63e35d04a3b2cc64bd760ca92c22fd4aa7
Diffstat (limited to 'operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0')
3 files changed, 171 insertions, 0 deletions
diff --git a/operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0/desc.json b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0/desc.json new file mode 100644 index 000000000..b4526f1cb --- /dev/null +++ b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0/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": "Op input list does not match expected input", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0/input-0.json b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0/input-0.json new file mode 100644 index 000000000..0a1c35ec9 --- /dev/null +++ b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0/input-0.json @@ -0,0 +1,95 @@ +{ + "type": "float16", + "data": [ + [ + 0.5810546875, + 0.5615234375, + 0.1312255859375, + 0.89306640625, + 0.9619140625, + 0.480224609375, + 0.5263671875 + ], + [ + 0.8984375, + 0.457275390625, + 0.1444091796875, + 0.039764404296875, + 0.5, + 0.4599609375, + 0.1549072265625 + ], + [ + 0.84228515625, + 0.55810546875, + 0.52001953125, + 0.1602783203125, + 0.301025390625, + 0.00556182861328125, + 0.9619140625 + ], + [ + 0.054046630859375, + 0.147705078125, + 0.81103515625, + 0.640625, + 0.79638671875, + 0.6953125, + 0.91552734375 + ], + [ + 0.386962890625, + 0.9462890625, + 0.356689453125, + 0.93408203125, + 0.050933837890625, + 0.445068359375, + 0.83154296875 + ], + [ + 0.99072265625, + 0.91552734375, + 0.70068359375, + 0.03900146484375, + 0.43505859375, + 0.533203125, + 0.7138671875 + ], + [ + 0.779296875, + 0.79150390625, + 0.38037109375, + 0.56201171875, + 0.943359375, + 0.380615234375, + 0.439208984375 + ], + [ + 0.218994140625, + 0.454345703125, + 0.87744140625, + 0.90625, + 0.47802734375, + 0.2340087890625, + 0.60693359375 + ], + [ + 0.1614990234375, + 0.56884765625, + 0.74609375, + 0.86328125, + 0.05340576171875, + 0.064697265625, + 0.293701171875 + ], + [ + 0.51220703125, + 0.98974609375, + 0.71240234375, + 0.5400390625, + 0.9130859375, + 0.62158203125, + 0.304443359375 + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0/test.json b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0/test.json new file mode 100644 index 000000000..e953f1858 --- /dev/null +++ b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_10x7_f16_perm0/test.json @@ -0,0 +1,55 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "TILE", + attribute_type: "TileAttribute", + attribute: { + multiples: [ + 2, + 3 + ] + }, + inputs: [ + + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 7 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 20, + 21 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |