aboutsummaryrefslogtreecommitdiff
path: root/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16
diff options
context:
space:
mode:
Diffstat (limited to 'operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16')
-rw-r--r--operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/desc.json21
-rw-r--r--operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/input-0.json17
-rw-r--r--operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/test.json47
3 files changed, 85 insertions, 0 deletions
diff --git a/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/desc.json b/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/desc.json
new file mode 100644
index 000000000..d57e8394e
--- /dev/null
+++ b/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/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": "Output data type not supported for this configuration of operator",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/input-0.json b/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/input-0.json
new file mode 100644
index 000000000..497b90c4d
--- /dev/null
+++ b/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/input-0.json
@@ -0,0 +1,17 @@
+{
+ "type": "float16",
+ "data": [
+ 0.049285888671875,
+ 0.06524658203125,
+ 0.414794921875,
+ 0.3349609375,
+ 0.61572265625,
+ 0.03790283203125,
+ 0.167724609375,
+ 0.2095947265625,
+ 0.4404296875,
+ 0.246826171875,
+ 0.1376953125,
+ 0.59765625
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/test.json b/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/test.json
new file mode 100644
index 000000000..2e75e80af
--- /dev/null
+++ b/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/test.json
@@ -0,0 +1,47 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "TANH",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12
+ ],
+ type: "INT8"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}