1 # model 2 model = Model() 3 i1 = Input("op1", "TENSOR_QUANT8_ASYMM", "0.0f, 127.5f, {1, 2, 2, 1}") 4 cons1 = Int32Scalar("cons1", 1) 5 act = Int32Scalar("act", 0) 6 o = Output("op3", "TENSOR_QUANT8_ASYMM", "0.0f, 127.5f, {1, 2, 2, 1}") 7 model = model.Operation("AVERAGE_POOL", i1, cons1, cons1, cons1, cons1, cons1, act).To(o) 8 9 # Example 1. Input in operand 0, 10 input0 = {i1: # input 0 11 [1, 2, 3, 4]} 12 13 output0 = {o: # output 0 14 [1, 2, 3, 4]} 15 16 # Instantiate an example 17 Example((input0, output0)) 18 19 20 21