summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/Ex/logical_not_ex_1D.mod.py
blob: a913b199775a798473bec0b28c9b2e307ca0afe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# model
model = Model()
i = Input("op1", "TENSOR_QUANT8_ASYMM", "{4}, 1.f, 0")

o = Output("op2", "TENSOR_QUANT8_ASYMM", "{4}, 1.f, 0")
model = model.Operation("LOGICAL_NOT_EX", i).To(o)

# Example 1. Input
input0 = {i: # input
          [255, 0, 255, 255]}

output0 = {o: # output
          [0, 255, 0, 0]}

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