aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/cast/cast_20_i8_outb
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/cast/cast_20_i8_outb')
-rw-r--r--operators/type_conversion/cast/cast_20_i8_outb/Conformance-result-0.json25
-rw-r--r--operators/type_conversion/cast/cast_20_i8_outb/desc.json24
-rw-r--r--operators/type_conversion/cast/cast_20_i8_outb/input-0.json25
-rw-r--r--operators/type_conversion/cast/cast_20_i8_outb/test.json47
4 files changed, 121 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_20_i8_outb/Conformance-result-0.json b/operators/type_conversion/cast/cast_20_i8_outb/Conformance-result-0.json
new file mode 100644
index 000000000..c32fbc3b6
--- /dev/null
+++ b/operators/type_conversion/cast/cast_20_i8_outb/Conformance-result-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "bool",
+ "data": [
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true,
+ true
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_20_i8_outb/desc.json b/operators/type_conversion/cast/cast_20_i8_outb/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/type_conversion/cast/cast_20_i8_outb/desc.json
@@ -0,0 +1,24 @@
+{
+ "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": 0,
+ "expected_failure": false,
+ "expected_result_file": [
+ "Conformance-result-0.npy"
+ ],
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_20_i8_outb/input-0.json b/operators/type_conversion/cast/cast_20_i8_outb/input-0.json
new file mode 100644
index 000000000..c30d3976f
--- /dev/null
+++ b/operators/type_conversion/cast/cast_20_i8_outb/input-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "int32",
+ "data": [
+ 72,
+ 36,
+ -25,
+ 82,
+ 11,
+ -15,
+ -13,
+ -70,
+ -105,
+ 13,
+ 99,
+ -112,
+ 91,
+ 83,
+ -58,
+ 33,
+ -86,
+ 66,
+ 51,
+ -38
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_20_i8_outb/test.json b/operators/type_conversion/cast/cast_20_i8_outb/test.json
new file mode 100644
index 000000000..ae1e466cd
--- /dev/null
+++ b/operators/type_conversion/cast/cast_20_i8_outb/test.json
@@ -0,0 +1,47 @@
+{
+ 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: [
+ 20
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20
+ ],
+ type: "BOOL"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}