summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/V1_2/logical_or_1D_nnfw.mod.py
blob: 77843ae063d108c2484b356379ead4444844c688 (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_OR", i1, i2).To(i3)

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

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

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