diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:08:52 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:08:52 +0100 |
commit | 0ea9b225e914a7ee00ebd0bc7c3861dc6230a900 (patch) | |
tree | 28627ef1d7ae4cf0fed98cd50b84e76bc056539f /operators/type_conversion/cast/cast_20_i8_outBOOL | |
parent | 6ecf925ab6c61ccfdfee6e103db7fffe1b1304bc (diff) | |
download | conformance_tests-0ea9b225e914a7ee00ebd0bc7c3861dc6230a900.tar.gz |
Updating CAST tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I5d447b4fa19217a414ded2facc6000a6dc0b874f
Diffstat (limited to 'operators/type_conversion/cast/cast_20_i8_outBOOL')
4 files changed, 117 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_20_i8_outBOOL/Conformance-result-0.json b/operators/type_conversion/cast/cast_20_i8_outBOOL/Conformance-result-0.json new file mode 100644 index 000000000..c32fbc3b6 --- /dev/null +++ b/operators/type_conversion/cast/cast_20_i8_outBOOL/Conformance-result-0.json @@ -0,0 +1,25 @@ +{ + "type": "bool", + "data": [ + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_20_i8_outBOOL/desc.json b/operators/type_conversion/cast/cast_20_i8_outBOOL/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/type_conversion/cast/cast_20_i8_outBOOL/desc.json @@ -0,0 +1,20 @@ +{ + "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": 0, + "expected_failure": false, + "expected_result_file": [ + "Conformance-result-0.npy" + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_20_i8_outBOOL/input-0.json b/operators/type_conversion/cast/cast_20_i8_outBOOL/input-0.json new file mode 100644 index 000000000..c30d3976f --- /dev/null +++ b/operators/type_conversion/cast/cast_20_i8_outBOOL/input-0.json @@ -0,0 +1,25 @@ +{ + "type": "int32", + "data": [ + 72, + 36, + -25, + 82, + 11, + -15, + -13, + -70, + -105, + 13, + 99, + -112, + 91, + 83, + -58, + 33, + -86, + 66, + 51, + -38 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_20_i8_outBOOL/test.json b/operators/type_conversion/cast/cast_20_i8_outBOOL/test.json new file mode 100644 index 000000000..d8517b575 --- /dev/null +++ b/operators/type_conversion/cast/cast_20_i8_outBOOL/test.json @@ -0,0 +1,47 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CAST", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 20 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 20 + ], + type: "BOOL" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |