From fde43724c4e354634566f93fa60d21048c1b7888 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Wed, 1 Mar 2023 12:24:20 +0000 Subject: Regen DATA LAYOUT tests for test gen improvements PAD, SLICE, TILE and TRANSPOSE have improved ERROR IF tests. Signed-off-by: Jeremy Johnson Change-Id: Id514aaff48d9710552fa8de27ff2045ff4107764 --- .../desc.json | 22 ++++++++ .../input-0.json | 61 ++++++++++++++++++++ .../test.json | 65 ++++++++++++++++++++++ 3 files changed, 148 insertions(+) create mode 100644 operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/desc.json create mode 100644 operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/input-0.json create mode 100644 operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/test.json (limited to 'operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0') diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/desc.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/desc.json new file mode 100644 index 000000000..bf7c1974a --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/desc.json @@ -0,0 +1,22 @@ +{ + "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-bi", + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/input-0.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/input-0.json new file mode 100644 index 000000000..a7e7b8209 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/input-0.json @@ -0,0 +1,61 @@ +{ + "type": "float16", + "data": [ + [ + 0.52099609375, + 0.42138671875 + ], + [ + 0.83349609375, + 0.7099609375 + ], + [ + 0.5966796875, + 0.81005859375 + ], + [ + 0.6015625, + 0.90966796875 + ], + [ + 0.01433563232421875, + 0.541015625 + ], + [ + 0.76318359375, + 0.83203125 + ], + [ + 0.46875, + 0.273193359375 + ], + [ + 0.2230224609375, + 0.371826171875 + ], + [ + 0.91357421875, + 0.548828125 + ], + [ + 0.72802734375, + 0.427490234375 + ], + [ + 0.7001953125, + 0.970703125 + ], + [ + 0.57763671875, + 0.95703125 + ], + [ + 0.8203125, + 0.2381591796875 + ], + [ + 0.2291259765625, + 0.8818359375 + ] + ] +} \ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/test.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/test.json new file mode 100644 index 000000000..ad0cb7449 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_14x2_f16_perm0/test.json @@ -0,0 +1,65 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 6, + 0 + ], + size: [ + 6, + 1 + ] + }, + inputs: [ + "input-0", + "eiDummyInput" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 14, + 2 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 6, + 1 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} -- cgit v1.2.1