From cf8989f6250721418177c5b78cdedb7b6c56f74d Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Thu, 13 Oct 2022 12:50:15 +0100 Subject: Updating DATA_LAYOUT tests for FP16 and accumulator types Signed-off-by: Jeremy Johnson Change-Id: I605e4528c4b31c393e4a8ee88de332ecbc2f1421 --- .../desc.json | 22 +++++++++ .../input-0.json | 15 ++++++ .../test.json | 56 ++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/desc.json create mode 100644 operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/input-0.json create mode 100644 operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/test.json (limited to 'operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2') diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/desc.json b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/desc.json new file mode 100644 index 000000000..2b74f86d0 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/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 output list does not match expected output", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/input-0.json b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/input-0.json new file mode 100644 index 000000000..87e1a5916 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/input-0.json @@ -0,0 +1,15 @@ +{ + "type": "int32", + "data": [ + -16085, + 3997, + 16720, + -21061, + 16132, + 10506, + 3876, + -16892, + -796, + 15938 + ] +} \ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/test.json b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/test.json new file mode 100644 index 000000000..5669679ed --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10_i16_perm2/test.json @@ -0,0 +1,56 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 3 + ], + size: [ + 6 + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0", + "eiDummyOutput" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 6 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1