summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/V1_2/logical_not_4D_nnfw.mod.py
blob: 34fecbcf5c0edcc4885c7b6801e43e5c4cfa7839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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))