summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/Ex/logical_not_ex_1D.mod.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nnapi/specs/Ex/logical_not_ex_1D.mod.py')
-rw-r--r--tests/nnapi/specs/Ex/logical_not_ex_1D.mod.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/nnapi/specs/Ex/logical_not_ex_1D.mod.py b/tests/nnapi/specs/Ex/logical_not_ex_1D.mod.py
new file mode 100644
index 000000000..a913b1997
--- /dev/null
+++ b/tests/nnapi/specs/Ex/logical_not_ex_1D.mod.py
@@ -0,0 +1,16 @@
+# model
+model = Model()
+i = Input("op1", "TENSOR_QUANT8_ASYMM", "{4}, 1.f, 0")
+
+o = Output("op2", "TENSOR_QUANT8_ASYMM", "{4}, 1.f, 0")
+model = model.Operation("LOGICAL_NOT_EX", i).To(o)
+
+# Example 1. Input
+input0 = {i: # input
+ [255, 0, 255, 255]}
+
+output0 = {o: # output
+ [0, 255, 0, 0]}
+
+# Instantiate an example
+Example((input0, output0))