diff options
Diffstat (limited to 'tests/nnapi/specs/V1_2/logical_not_4D_nnfw.mod.py')
-rwxr-xr-x | tests/nnapi/specs/V1_2/logical_not_4D_nnfw.mod.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/nnapi/specs/V1_2/logical_not_4D_nnfw.mod.py b/tests/nnapi/specs/V1_2/logical_not_4D_nnfw.mod.py new file mode 100755 index 000000000..34fecbcf5 --- /dev/null +++ b/tests/nnapi/specs/V1_2/logical_not_4D_nnfw.mod.py @@ -0,0 +1,16 @@ +# model +model = Model() +i = Input("op1", "TENSOR_BOOL8", "{1, 2, 2, 1}") # a vector of input + +o = Output("op2", "TENSOR_BOOL8", "{1, 2, 2, 1}") # a vector of output +model = model.Operation("LOGICAL_NOT", i).To(o) + +# Example 1. Input +input0 = {i: # input + [False, True, True, True]} + +output0 = {o: # output + [True, False, False, False]} + +# Instantiate an example +Example((input0, output0)) |