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_WrongOutputType_1x13x13_i16_outINT48 | |
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_WrongOutputType_1x13x13_i16_outINT48')
3 files changed, 275 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x13x13_i16_outINT48/desc.json b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x13x13_i16_outINT48/desc.json new file mode 100644 index 000000000..199bfa93c --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x13x13_i16_outINT48/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": "Output data type not supported for this configuration of operator", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x13x13_i16_outINT48/input-0.json b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x13x13_i16_outINT48/input-0.json new file mode 100644 index 000000000..99270dc45 --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x13x13_i16_outINT48/input-0.json @@ -0,0 +1,202 @@ +{ + "type": "int32", + "data": [ + [ + [ + -25820, + 22279, + -18275, + -28002, + 16186, + 32659, + -9927, + -7547, + 10670, + -25648, + -19293, + 24438, + 16828 + ], + [ + -23266, + 10169, + 29920, + -18204, + -18635, + 28309, + 30202, + 1485, + -1347, + -18360, + -29100, + 4369, + -22873 + ], + [ + -5550, + 28677, + 27337, + -2495, + -12462, + 31197, + 25317, + 6794, + 15884, + -3957, + 11789, + 3561, + -20721 + ], + [ + -28236, + -27124, + 19624, + 23883, + 867, + 4623, + 27440, + 30493, + 14107, + 1074, + -3295, + 5988, + 16293 + ], + [ + 32578, + 10706, + 14148, + -31092, + -9174, + -14442, + 21482, + -16023, + -13403, + 10034, + 1643, + -6058, + -17174 + ], + [ + 26024, + 32419, + -28522, + 28476, + 21243, + 24501, + -3921, + -6479, + 7383, + 14976, + 28451, + -15678, + 30579 + ], + [ + -7209, + 10730, + 19957, + 10092, + -29072, + 24755, + -29524, + 2480, + 10556, + -16355, + 17996, + 6402, + -7633 + ], + [ + -22637, + 11447, + -26193, + 26409, + -25242, + -26216, + -19313, + 21660, + 22643, + 5356, + 19333, + -5089, + 32534 + ], + [ + -29380, + 7380, + -7598, + -9525, + 19260, + 17557, + 2750, + 24359, + -21214, + -27734, + -17550, + -26474, + 22781 + ], + [ + 911, + -4397, + -211, + -26511, + 9729, + 31020, + -23437, + -16158, + 18166, + 19430, + -14314, + -31929, + 14364 + ], + [ + -15958, + 20239, + -10675, + 31260, + 23555, + -28286, + 16249, + 14332, + -12582, + 27383, + 18840, + -15358, + 20320 + ], + [ + 13778, + 787, + 25586, + 516, + -15030, + 624, + -1076, + -21798, + 4770, + 20495, + 24845, + 14064, + -684 + ], + [ + 22897, + 28225, + 20688, + 19163, + 18706, + -705, + 18374, + -7690, + 29127, + 25138, + 6908, + 14364, + 21491 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x13x13_i16_outINT48/test.json b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x13x13_i16_outINT48/test.json new file mode 100644 index 000000000..402ed8a5a --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x13x13_i16_outINT48/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: [ + 1, + 13, + 13 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 1, + 13, + 13 + ], + type: "INT48" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |