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