From c4092d6680fe919b2631f273cdfb3342fcae4bcc Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:48 +0100 Subject: Updating SELECT tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I01b98dc43d4fccfde79e04194846b70604e6cdf5 --- .../select_ERRORIF_WrongInputList_12_i32/desc.json | 22 ++++++++ .../input-0.json | 17 ++++++ .../input-1.json | 17 ++++++ .../input-2.json | 6 ++ .../select_ERRORIF_WrongInputList_12_i32/test.json | 64 ++++++++++++++++++++++ 5 files changed, 126 insertions(+) create mode 100644 operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/desc.json create mode 100644 operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-0.json create mode 100644 operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-1.json create mode 100644 operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-2.json create mode 100644 operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/test.json (limited to 'operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32') diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/desc.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/desc.json new file mode 100644 index 000000000..28a21412c --- /dev/null +++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/desc.json @@ -0,0 +1,22 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1", + "input-2" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy", + "input-2.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" +} \ No newline at end of file diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-0.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-0.json new file mode 100644 index 000000000..05dd5399c --- /dev/null +++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-0.json @@ -0,0 +1,17 @@ +{ + "type": "bool", + "data": [ + true, + true, + true, + false, + false, + false, + true, + true, + false, + false, + false, + false + ] +} \ No newline at end of file diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-1.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-1.json new file mode 100644 index 000000000..91d78db4e --- /dev/null +++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-1.json @@ -0,0 +1,17 @@ +{ + "type": "int32", + "data": [ + 501579013, + 1507734339, + 107749730, + -232580410, + 2069676726, + -1730833302, + 1519535742, + -1876013883, + 688595351, + -118974775, + 973323073, + 86233512 + ] +} \ No newline at end of file diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-2.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-2.json new file mode 100644 index 000000000..0cb86298b --- /dev/null +++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/input-2.json @@ -0,0 +1,6 @@ +{ + "type": "int32", + "data": [ + -1534837209 + ] +} \ No newline at end of file diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/test.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/test.json new file mode 100644 index 000000000..4ea787b06 --- /dev/null +++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputList_12_i32/test.json @@ -0,0 +1,64 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "SELECT", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 12 + ], + type: "INT32" + }, + { + name: "input-2", + shape: [ + 1 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 12 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1", + "input-2" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1