diff options
author | James Ward <james.ward@arm.com> | 2022-11-18 15:10:49 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2022-11-18 15:10:49 +0000 |
commit | a25d672b327ad02b3813592803e41f5909aa0d5a (patch) | |
tree | 42143632c6bd0dff88743cc5284b8e4a25c0918a /operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0 | |
parent | 874bb4fe493b2958a21e9a84c22828e82d4ff167 (diff) | |
download | conformance_tests-a25d672b327ad02b3813592803e41f5909aa0d5a.tar.gz |
Create MI tests for Tensors: ARGMAX, MAX_POOL2D
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I3682311cbdffa52fa88ae1b5779c615e2f062807
Diffstat (limited to 'operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0')
3 files changed, 117 insertions, 0 deletions
diff --git a/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0/desc.json b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0/desc.json new file mode 100644 index 000000000..15cad4b15 --- /dev/null +++ b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0/desc.json @@ -0,0 +1,21 @@ +{ + "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-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0/input-0.json b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0/input-0.json new file mode 100644 index 000000000..fc9cbcd45 --- /dev/null +++ b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0/input-0.json @@ -0,0 +1,45 @@ +{ + "type": "int32", + "data": [ + [ + -62305554, + -1270045818 + ], + [ + 1651107879, + -1680549207 + ], + [ + 2016705268, + -2146625843 + ], + [ + 357434762, + 1384778462 + ], + [ + 1018154072, + -88841567 + ], + [ + -130667414, + -1768600594 + ], + [ + 1738486204, + 1687974492 + ], + [ + -446825372, + 1550639982 + ], + [ + 1981596512, + -143391819 + ], + [ + 121993806, + 739649077 + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0/test.json b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0/test.json new file mode 100644 index 000000000..cff6435b6 --- /dev/null +++ b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x2_i32_axis0/test.json @@ -0,0 +1,51 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "ARGMAX", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 2 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 2 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |