From d8e6b6b5148a3d61b378e6e5259ca421a709abef Mon Sep 17 00:00:00 2001 From: James Ward Date: Mon, 21 Nov 2022 11:51:55 +0000 Subject: Create MI tests for Data Layout: CONCAT, PAD, RESHAPE, REVERSE, SLICE, TILE, TRANSPOSE Signed-off-by: James Ward Change-Id: Icbbe8f63e35d04a3b2cc64bd760ca92c22fd4aa7 --- .../desc.json | 21 +++++++++ .../input-0.json | 15 ++++++ .../test.json | 55 ++++++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/desc.json create mode 100644 operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/input-0.json create mode 100644 operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/test.json (limited to 'operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00') diff --git a/operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/desc.json b/operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/desc.json new file mode 100644 index 000000000..d57e8394e --- /dev/null +++ b/operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/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": "Output data type not supported for this configuration of operator", + "profile": [ + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/input-0.json b/operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/input-0.json new file mode 100644 index 000000000..24e1a3dc1 --- /dev/null +++ b/operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/input-0.json @@ -0,0 +1,15 @@ +{ + "type": "float32", + "data": [ + 0.66796875, + 0.73046875, + 0.3203125, + 0.126953125, + 0.84765625, + 0.546875, + 0.5859375, + 0.875, + 0.0228271484375, + 0.033447265625 + ] +} \ No newline at end of file diff --git a/operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/test.json b/operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/test.json new file mode 100644 index 000000000..31c24935b --- /dev/null +++ b/operators/data_layout/pad/pad_ERRORIF_WrongOutputType_10_bf16_pad00/test.json @@ -0,0 +1,55 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "PAD", + attribute_type: "PadAttribute", + attribute: { + padding: [ + 0, + 0 + ], + pad_const_int: 0, + pad_const_fp: 0.558594 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 10 + ], + type: "INT48" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1