blob: e40a02cd0973be8935cedc116549e32e1e8dc94f [file] [log] [blame]
# model
model = Model()
i1 = Input("op1", "TENSOR_QUANT8_ASYMM", "{1, 2, 2, 1}, 0.5f, 0")
cons1 = Int32Scalar("cons1", 1)
pad0 = Int32Scalar("pad0", 0)
act = Int32Scalar("act", 0)
o = Output("op3", "TENSOR_QUANT8_ASYMM", "{1, 2, 2, 1}, 0.5f, 0")
model = model.Operation("AVERAGE_POOL_2D", i1, pad0, pad0, pad0, pad0, cons1, cons1, cons1, cons1, act).To(o)
# Example 1. Input in operand 0,
input0 = {i1: # input 0
[1, 2, 3, 4]}
output0 = {o: # output 0
[1, 2, 3, 4]}
# Instantiate an example
Example((input0, output0))