I have an array output and a id subject_ids.
output = [[[1, 2, 3]], [[4, 5, 6]], [[7, 8, 9]]]
subject_ids = [[0, 1], [1, 2], [0, 2]]
The numbers in ID represent the start and end positions respectively, and then I want to get the vector between them according to the start and end positions.
For example,I should get [[1, 2, 3], [4, 5, 6]] and [[4, 5, 6], [7, 8, 9]] and [[1, 2, 3], [4, 5, 6], [7, 8, 9]] in this case.
What should I do? I tried tf.slice and tf.gather, but it didn't seem to work.
How about just