2 i1 = Input("input", "TENSOR_FLOAT32", "{1, 4, 3, 2}")
3 axis = Parameter("axis", "TENSOR_INT32", "{2}", [1, 2])
4 keepDims = Int32Scalar("keepDims", 1)
5 output = Output("output", "TENSOR_FLOAT32", "{1, 1, 1, 2}")
7 model = model.Operation("MEAN", i1, axis, keepDims).To(output)
9 # Example 1. Input in operand 0,
10 input0 = {i1: # input 0
11 [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
12 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]}
14 output0 = {output: # output 0
17 # Instantiate an example
18 Example((input0, output0))