From 0ea9b225e914a7ee00ebd0bc7c3861dc6230a900 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:08:52 +0100 Subject: Updating CAST tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I5d447b4fa19217a414ded2facc6000a6dc0b874f --- .../cast_53_i16_outBOOL/Conformance-result-0.json | 58 ++++++++++++++++++++++ .../cast/cast_53_i16_outBOOL/desc.json | 20 ++++++++ .../cast/cast_53_i16_outBOOL/input-0.json | 58 ++++++++++++++++++++++ .../cast/cast_53_i16_outBOOL/test.json | 47 ++++++++++++++++++ 4 files changed, 183 insertions(+) create mode 100644 operators/type_conversion/cast/cast_53_i16_outBOOL/Conformance-result-0.json create mode 100644 operators/type_conversion/cast/cast_53_i16_outBOOL/desc.json create mode 100644 operators/type_conversion/cast/cast_53_i16_outBOOL/input-0.json create mode 100644 operators/type_conversion/cast/cast_53_i16_outBOOL/test.json (limited to 'operators/type_conversion/cast/cast_53_i16_outBOOL') diff --git a/operators/type_conversion/cast/cast_53_i16_outBOOL/Conformance-result-0.json b/operators/type_conversion/cast/cast_53_i16_outBOOL/Conformance-result-0.json new file mode 100644 index 000000000..ba7b57cb7 --- /dev/null +++ b/operators/type_conversion/cast/cast_53_i16_outBOOL/Conformance-result-0.json @@ -0,0 +1,58 @@ +{ + "type": "bool", + "data": [ + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + 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_53_i16_outBOOL/desc.json b/operators/type_conversion/cast/cast_53_i16_outBOOL/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/type_conversion/cast/cast_53_i16_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_53_i16_outBOOL/input-0.json b/operators/type_conversion/cast/cast_53_i16_outBOOL/input-0.json new file mode 100644 index 000000000..1ae9649dd --- /dev/null +++ b/operators/type_conversion/cast/cast_53_i16_outBOOL/input-0.json @@ -0,0 +1,58 @@ +{ + "type": "int32", + "data": [ + 19453, + 18803, + 18373, + 10803, + -1864, + 13445, + -14607, + 18397, + 3646, + -2693, + 367, + 4505, + -30326, + -23607, + -16681, + -25263, + -3958, + 11036, + 10120, + -1895, + 23270, + 4275, + -27578, + 17366, + 4889, + 8828, + 4284, + 3511, + -26833, + 3880, + 19327, + -12849, + 6739, + -30749, + -9995, + -4148, + 31636, + -18705, + -14645, + -5995, + 32287, + 23160, + -30495, + -17437, + 21081, + -28948, + 23309, + -14328, + 27371, + -13528, + -4305, + 10611, + -24493 + ] +} \ No newline at end of file diff --git a/operators/type_conversion/cast/cast_53_i16_outBOOL/test.json b/operators/type_conversion/cast/cast_53_i16_outBOOL/test.json new file mode 100644 index 000000000..a77999fb7 --- /dev/null +++ b/operators/type_conversion/cast/cast_53_i16_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: [ + 53 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 53 + ], + type: "BOOL" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1