aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5
diff options
context:
space:
mode:
Diffstat (limited to 'operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5')
-rw-r--r--operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/desc.json21
-rw-r--r--operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/input-0.json16
-rw-r--r--operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/test.json50
3 files changed, 87 insertions, 0 deletions
diff --git a/operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/desc.json b/operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/desc.json
new file mode 100644
index 000000000..d589cbf3f
--- /dev/null
+++ b/operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/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 larger than rank",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/input-0.json b/operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/input-0.json
new file mode 100644
index 000000000..a17d69855
--- /dev/null
+++ b/operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/input-0.json
@@ -0,0 +1,16 @@
+{
+ "type": "float16",
+ "data": [
+ 0.6455078125,
+ 0.261474609375,
+ 0.63525390625,
+ 0.128662109375,
+ 0.06939697265625,
+ 0.99365234375,
+ 0.63623046875,
+ 0.253173828125,
+ 0.449951171875,
+ 0.9501953125,
+ 0.438720703125
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/test.json b/operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/test.json
new file mode 100644
index 000000000..1ebca272d
--- /dev/null
+++ b/operators/tensor/argmax/argmax_ERRORIF_AxisLargerRank_11_f16_axis5/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: 5
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 11
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 11
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}