1model = Model()
2i1 = Input("input", "TENSOR_QUANT8_ASYMM", "{4, 3, 2}, 0.8, 5")
3axis = Parameter("axis", "TENSOR_INT32", "{2}", [0, 2])
4keepDims = Int32Scalar("keepDims", 1)
5output = Output("output", "TENSOR_QUANT8_ASYMM", "{1, 3, 1}, 0.8, 5")
6
7model = model.Operation("MEAN", i1, axis, keepDims).To(output)
8
9# Example 1. Input in operand 0,
10input0 = {i1: # input 0
11          [1,  2,  3,  4,  5,  6,  7,  8,
12           9,  10, 11, 12, 13, 14, 15, 16,
13           17, 18, 19, 20, 21, 22, 23, 24]}
14
15output0 = {output: # output 0
16          [10, 12, 14]}
17
18# Instantiate an example
19Example((input0, output0))
20