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_AxisSmallerZero_10_bf16_axis-3 | |
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_AxisSmallerZero_10_bf16_axis-3')
3 files changed, 86 insertions, 0 deletions
diff --git a/operators/tensor/argmax/argmax_ERRORIF_AxisSmallerZero_10_bf16_axis-3/desc.json b/operators/tensor/argmax/argmax_ERRORIF_AxisSmallerZero_10_bf16_axis-3/desc.json new file mode 100644 index 000000000..9a306b5d5 --- /dev/null +++ b/operators/tensor/argmax/argmax_ERRORIF_AxisSmallerZero_10_bf16_axis-3/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": "Axis smaller than zero", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/argmax/argmax_ERRORIF_AxisSmallerZero_10_bf16_axis-3/input-0.json b/operators/tensor/argmax/argmax_ERRORIF_AxisSmallerZero_10_bf16_axis-3/input-0.json new file mode 100644 index 000000000..c1cee747f --- /dev/null +++ b/operators/tensor/argmax/argmax_ERRORIF_AxisSmallerZero_10_bf16_axis-3/input-0.json @@ -0,0 +1,15 @@ +{ + "type": "float32", + "data": [ + 0.490234375, + 0.9375, + 0.5703125, + 0.47265625, + 0.265625, + 0.330078125, + 0.51953125, + 0.4375, + 0.0216064453125, + 0.82421875 + ] +}
\ No newline at end of file diff --git a/operators/tensor/argmax/argmax_ERRORIF_AxisSmallerZero_10_bf16_axis-3/test.json b/operators/tensor/argmax/argmax_ERRORIF_AxisSmallerZero_10_bf16_axis-3/test.json new file mode 100644 index 000000000..ddae679d6 --- /dev/null +++ b/operators/tensor/argmax/argmax_ERRORIF_AxisSmallerZero_10_bf16_axis-3/test.json @@ -0,0 +1,50 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "ARGMAX", + attribute_type: "AxisAttribute", + attribute: { + axis: -3 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 10 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |