summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/V1_2/logical_and_1D_nnfw.mod.py
blob: 173ccfab0ac1a09cfe9e9d746b4a063e00a89d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# model
model = Model()
i1 = Input("op1", "TENSOR_BOOL8", "{4}")
i2 = Input("op2", "TENSOR_BOOL8", "{4}")

i3 = Output("op3", "TENSOR_BOOL8", "{4}")
model = model.Operation("LOGICAL_AND", i1, i2).To(i3)

# Example 1. Input in operand 0,
input0 = {i1: # input 0
          [False, False, True, True],
          i2: # input 1
          [False, True, False, True]}

output0 = {i3: # output 0
          [False, False, False, True]}

# Instantiate an example
Example((input0, output0))