1model = Model() 2i1 = Input("input", "TENSOR_FLOAT32", "{2, 3}") 3begins = Parameter("begins", "TENSOR_INT32", "{2}", [0, 0]) 4ends = Parameter("ends", "TENSOR_INT32", "{2}", [2, 3]) 5strides = Parameter("strides", "TENSOR_INT32", "{2}", [2, 2]) 6beginMask = Int32Scalar("beginMask", 0) 7endMask = Int32Scalar("endMask", 0) 8shrinkAxisMask = Int32Scalar("shrinkAxisMask", 0) 9 10output = Output("output", "TENSOR_FLOAT32", "{1, 2}") 11 12model = model.Operation("STRIDED_SLICE", i1, begins, ends, strides, beginMask, endMask, shrinkAxisMask).To(output) 13 14# Example 1. Input in operand 0, 15input0 = {i1: # input 0 16 [1.0, 2.0, 3.0, 17 4.0, 5.0, 6.0]} 18 19output0 = {output: # output 0 20 [1.0, 3.0]} 21 22# Instantiate an example 23Example((input0, output0)) 24