summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/Ex/logical_not_ex_4D.mod.py
blob: 49306fc515196c1f80efc1a28bd76f756b10e75b (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", "{1, 2, 2, 1}, 1.f, 0") # a vector of input

o = Output("op2", "TENSOR_QUANT8_ASYMM", "{1, 2, 2, 1}, 1.f, 0") # a vector of output
model = model.Operation("LOGICAL_NOT_EX", i).To(o)

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

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

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