diff options
Diffstat (limited to 'tests/nnapi/specs/Ex/neg_ex_4D_int.mod.py')
-rw-r--r-- | tests/nnapi/specs/Ex/neg_ex_4D_int.mod.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/nnapi/specs/Ex/neg_ex_4D_int.mod.py b/tests/nnapi/specs/Ex/neg_ex_4D_int.mod.py new file mode 100644 index 000000000..ac90eb361 --- /dev/null +++ b/tests/nnapi/specs/Ex/neg_ex_4D_int.mod.py @@ -0,0 +1,25 @@ +# model +model = Model() +i1 = Input("op1", "TENSOR_INT32", "{2,3,2,2}") +i2 = Output("op2", "TENSOR_INT32", "{2,3,2,2}") +model = model.Operation("NEG_EX", i1).To(i2) + +# Example 1. Input in operand 0, +input0 = {i1: # input 0 + [3, 4, 5, 6, + -7, 8,-9, 1, + 2, 18, 19, 11, + -40, 42, 4, 12, + 22, -32, 62, 52, + 92, 59, 69, -312]} + +output0 = {i2: # output 0 + [-3, -4, -5, -6, + 7, -8, 9, -1, + -2, -18, -19, -11, + 40, -42, -4, -12, + -22, 32, -62, -52, + -92, -59, -69, 312]} + +# Instantiate an example +Example((input0, output0)) |