diff options
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" + ] + } + ] +} |