3 i1 = Input("op1", "TENSOR_INT32", "{2,2,2,2}")
4 size_splits = Input("size_splits", "TENSOR_INT32", "{2}")
5 split_dim = Input("split_dim", "TENSOR_INT32", "{1}")
6 num_splits = Int32Scalar("num_splits", 2)
8 i2 = Output("op2", "TENSOR_INT32", "{1,2,2,2}")
9 i3 = Output("op3", "TENSOR_INT32", "{1,2,2,2}")
10 model = model.Operation("SPLIT_V_EX", i1, size_splits, split_dim, num_splits).To([i2, i3])
12 # Example 1. Input in operand 0,
13 input0 = {i1: # input 0
14 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
22 [1, 2, 3, 4, 5, 6, 7, 8],
24 [9, 10, 11, 12, 13, 14, 15, 16]}
26 # Instantiate an example
27 Example((input0, output0))