summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/V1_2/logical_or_2D_nnfw.mod.py
blob: 2ba17edd35c7f78ef57f0b2098a53a9c065256e0 (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", "{2, 2}")
i2 = Input("op2", "TENSOR_BOOL8", "{2, 2}")

i3 = Output("op3", "TENSOR_BOOL8", "{2, 2}")
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 1
          [False, True, False, True]}

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

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