diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 12:50:32 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 12:50:32 +0100 |
commit | 2caed563b3a5a394c38c42835ef3f0ce1dbece43 (patch) | |
tree | e3493e60e1a8415318329f33cdf7e2dcf9473860 /operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL | |
parent | 06f9df4678a5e20fe6e877aff4032c23c1f4ab6d (diff) | |
download | conformance_tests-2caed563b3a5a394c38c42835ef3f0ce1dbece43.tar.gz |
Updating TYPE_CONVERSION tests for FP16 and accumulator types
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I7e97e3e6a12f138c96a5c8febc45d47dd4f15b98
Diffstat (limited to 'operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL')
3 files changed, 214 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL/desc.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL/desc.json new file mode 100644 index 000000000..992afc22b --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL/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": "Input data type not supported for this operator", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL/input-0.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL/input-0.json new file mode 100644 index 000000000..21b2c11b4 --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL/input-0.json @@ -0,0 +1,141 @@ +{ + "type": "int32", + "data": [ + [ + [ + -6, + 4, + 2, + -6 + ], + [ + -4, + 1, + 1, + 5 + ], + [ + -4, + 6, + -1, + 5 + ], + [ + -4, + -7, + -7, + -2 + ], + [ + 7, + -7, + -2, + -6 + ], + [ + 6, + 3, + 4, + 3 + ], + [ + 2, + 4, + -7, + 5 + ], + [ + 4, + 4, + -2, + 5 + ], + [ + -2, + -7, + 6, + -4 + ], + [ + -6, + 2, + -4, + 5 + ], + [ + -1, + -7, + 7, + 0 + ] + ], + [ + [ + -4, + 3, + 0, + -7 + ], + [ + 4, + -1, + 3, + 6 + ], + [ + 2, + 3, + -4, + -4 + ], + [ + -1, + 5, + 0, + -2 + ], + [ + 4, + 5, + 6, + -3 + ], + [ + 3, + 1, + -1, + -2 + ], + [ + -6, + -3, + 1, + 6 + ], + [ + 5, + -5, + 3, + -6 + ], + [ + 3, + -2, + -1, + 3 + ], + [ + -1, + 5, + 1, + 7 + ], + [ + 2, + -3, + 4, + -1 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL/test.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL/test.json new file mode 100644 index 000000000..6f5f4a565 --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outBOOL/test.json @@ -0,0 +1,51 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CAST", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 11, + 4 + ], + type: "INT4" + }, + { + name: "result-0", + shape: [ + 2, + 11, + 4 + ], + type: "BOOL" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |