aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0
diff options
context:
space:
mode:
Diffstat (limited to 'operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0')
-rw-r--r--operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0/desc.json21
-rw-r--r--operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0/input-0.json35
-rw-r--r--operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0/test.json56
3 files changed, 112 insertions, 0 deletions
diff --git a/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0/desc.json b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0/desc.json
new file mode 100644
index 000000000..15cad4b15
--- /dev/null
+++ b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_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_10x1_b_axis0/input-0.json b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0/input-0.json
new file mode 100644
index 000000000..42f0c1fce
--- /dev/null
+++ b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0/input-0.json
@@ -0,0 +1,35 @@
+{
+ "type": "bool",
+ "data": [
+ [
+ true
+ ],
+ [
+ true
+ ],
+ [
+ false
+ ],
+ [
+ true
+ ],
+ [
+ true
+ ],
+ [
+ false
+ ],
+ [
+ true
+ ],
+ [
+ true
+ ],
+ [
+ false
+ ],
+ [
+ false
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0/test.json b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0/test.json
new file mode 100644
index 000000000..6517b29f9
--- /dev/null
+++ b/operators/tensor/argmax/argmax_ERRORIF_WrongInputType_10x1_b_axis0/test.json
@@ -0,0 +1,56 @@
+{
+ version: {
+ _major: 0,
+ _minor: 70,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "ARGMAX",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: 0
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 1
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}