diff options
Diffstat (limited to 'tests/nnapi/specs/Ex/neg_ex_1D_float.mod.py')
-rw-r--r-- | tests/nnapi/specs/Ex/neg_ex_1D_float.mod.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/nnapi/specs/Ex/neg_ex_1D_float.mod.py b/tests/nnapi/specs/Ex/neg_ex_1D_float.mod.py new file mode 100644 index 000000000..d66298099 --- /dev/null +++ b/tests/nnapi/specs/Ex/neg_ex_1D_float.mod.py @@ -0,0 +1,15 @@ +# model +model = Model() +i1 = Input("op1", "TENSOR_FLOAT32", "{4}") # a vector of input +i2 = Output("op2", "TENSOR_FLOAT32", "{4}") # a vector of output +model = model.Operation("NEG_EX", i1).To(i2) + +# Example 1. Input in operand 0, +input0 = {i1: # input 0 + [3.0, 4.0, 5.0, 6.0]} + +output0 = {i2: # output 0 + [-3.0, -4.0, -5.0, -6.0]} + +# Instantiate an example +Example((input0, output0)) |