From 81e1634bb20b64da3647bd4c7e60e7f10f422272 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Tue, 7 Feb 2023 15:13:08 +0000 Subject: Regen various ERRORIF tests for tosa_mi after adjustment NEGATE, TILE, REDUCE_MIN, REDUCE_MAX, RESIZE, SCATTER, GATHER Signed-off-by: Jeremy Johnson Change-Id: I02a2a6591f82cf6975abc610c059912c97405c51 --- .../desc.json | 21 ++++++++ .../input-0.json | 7 +++ .../test.json | 57 ++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0/desc.json create mode 100644 operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0/input-0.json create mode 100644 operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0/test.json (limited to 'operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0') diff --git a/operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0/desc.json b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0/desc.json new file mode 100644 index 000000000..b4526f1cb --- /dev/null +++ b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_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_2_f32_perm0/input-0.json b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0/input-0.json new file mode 100644 index 000000000..5e99a758b --- /dev/null +++ b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0/input-0.json @@ -0,0 +1,7 @@ +{ + "type": "float32", + "data": [ + 0.7177925705909729, + 0.024210508912801743 + ] +} \ No newline at end of file diff --git a/operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0/test.json b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0/test.json new file mode 100644 index 000000000..6e36c49b4 --- /dev/null +++ b/operators/data_layout/tile/tile_ERRORIF_WrongInputList_2_f32_perm0/test.json @@ -0,0 +1,57 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "TILE", + attribute_type: "TileAttribute", + attribute: { + multiples: [ + 2 + ] + }, + inputs: [ + + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 4 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} -- cgit v1.2.1