aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb')
-rw-r--r--operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/desc.json22
-rw-r--r--operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/input-0.json141
-rw-r--r--operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/test.json51
3 files changed, 214 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/desc.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/desc.json
new file mode 100644
index 000000000..992afc22b
--- /dev/null
+++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/desc.json
@@ -0,0 +1,22 @@
+{
+ "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-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/input-0.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/input-0.json
new file mode 100644
index 000000000..21b2c11b4
--- /dev/null
+++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/input-0.json
@@ -0,0 +1,141 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ [
+ -6,
+ 4,
+ 2,
+ -6
+ ],
+ [
+ -4,
+ 1,
+ 1,
+ 5
+ ],
+ [
+ -4,
+ 6,
+ -1,
+ 5
+ ],
+ [
+ -4,
+ -7,
+ -7,
+ -2
+ ],
+ [
+ 7,
+ -7,
+ -2,
+ -6
+ ],
+ [
+ 6,
+ 3,
+ 4,
+ 3
+ ],
+ [
+ 2,
+ 4,
+ -7,
+ 5
+ ],
+ [
+ 4,
+ 4,
+ -2,
+ 5
+ ],
+ [
+ -2,
+ -7,
+ 6,
+ -4
+ ],
+ [
+ -6,
+ 2,
+ -4,
+ 5
+ ],
+ [
+ -1,
+ -7,
+ 7,
+ 0
+ ]
+ ],
+ [
+ [
+ -4,
+ 3,
+ 0,
+ -7
+ ],
+ [
+ 4,
+ -1,
+ 3,
+ 6
+ ],
+ [
+ 2,
+ 3,
+ -4,
+ -4
+ ],
+ [
+ -1,
+ 5,
+ 0,
+ -2
+ ],
+ [
+ 4,
+ 5,
+ 6,
+ -3
+ ],
+ [
+ 3,
+ 1,
+ -1,
+ -2
+ ],
+ [
+ -6,
+ -3,
+ 1,
+ 6
+ ],
+ [
+ 5,
+ -5,
+ 3,
+ -6
+ ],
+ [
+ 3,
+ -2,
+ -1,
+ 3
+ ],
+ [
+ -1,
+ 5,
+ 1,
+ 7
+ ],
+ [
+ 2,
+ -3,
+ 4,
+ -1
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/test.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/test.json
new file mode 100644
index 000000000..6f5f4a565
--- /dev/null
+++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_2x11x4_i4_outb/test.json
@@ -0,0 +1,51 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 2,
+ 11,
+ 4
+ ],
+ type: "INT4"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 2,
+ 11,
+ 4
+ ],
+ type: "BOOL"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}