@richard thanks for your reply.
my input is a two-demension tensor , and i have a two-demension tensor contain the coordinates of the element that i want to obtain from the input tensor .
can you give me some advice how to obtain the element according to the coordinate?