diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:06:38 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:06:38 +0100 |
commit | 4f0cd453e02cf11dcb8b1dcb004cf4909cb2db1a (patch) | |
tree | c0615247657214838ae0e9e6e08cf59b45945421 /operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4 | |
parent | e6f2dc9772476e7be0c139ea01b25688325397c3 (diff) | |
download | conformance_tests-4f0cd453e02cf11dcb8b1dcb004cf4909cb2db1a.tar.gz |
Updating LOGICAL_LEFT_SHIFT tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I65a948370fd39f6af47c84317dd40fa4d3f4f5ce
Diffstat (limited to 'operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4')
4 files changed, 111 insertions, 0 deletions
diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/desc.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/desc.json new file mode 100644 index 000000000..3a3a4eb23 --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/desc.json @@ -0,0 +1,20 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "Input data type not supported for this operator" +}
\ No newline at end of file diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/input-0.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/input-0.json new file mode 100644 index 000000000..254008796 --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/input-0.json @@ -0,0 +1,29 @@ +{ + "type": "int32", + "data": [ + -7, + 6, + -2, + 3, + -3, + -3, + -4, + 1, + 3, + -7, + 2, + 5, + 0, + -3, + -4, + 5, + 2, + 5, + 0, + -1, + -3, + 5, + 4, + 0 + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/input-1.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/input-1.json new file mode 100644 index 000000000..d99e4bb29 --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/input-1.json @@ -0,0 +1,6 @@ +{ + "type": "int32", + "data": [ + 26 + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/test.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/test.json new file mode 100644 index 000000000..20ef3aaa1 --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_24_i4/test.json @@ -0,0 +1,56 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "LOGICAL_LEFT_SHIFT", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 24 + ], + type: "INT4" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "INT4" + }, + { + name: "result-0", + shape: [ + 24 + ], + type: "INT4" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |