summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/Ex/rsqrt_ex_1D_float.mod.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nnapi/specs/Ex/rsqrt_ex_1D_float.mod.py')
-rw-r--r--tests/nnapi/specs/Ex/rsqrt_ex_1D_float.mod.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/nnapi/specs/Ex/rsqrt_ex_1D_float.mod.py b/tests/nnapi/specs/Ex/rsqrt_ex_1D_float.mod.py
new file mode 100644
index 000000000..f052708cf
--- /dev/null
+++ b/tests/nnapi/specs/Ex/rsqrt_ex_1D_float.mod.py
@@ -0,0 +1,13 @@
+# model
+model = Model()
+i1 = Input("op1", "TENSOR_FLOAT32", "{4}") #A vector of inputs
+i2 = Output("op2", "TENSOR_FLOAT32", "{4}") #A vector of outputs
+model = model.Operation("RSQRT_EX", i1).To(i2)
+
+# Example 1. Input in operand 0,
+input0 = {i1: # input 0
+ [36.0, 90.0, 43.0, 36.0]}
+output0 = {i2: # output 0
+ [0.166667, 0.105409, 0.152499, 0.166667]}
+# Instantiate an example
+Example((input0, output0))