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