python - How to find a value in tensor from other tensor ...
https://stackoverflow.com/questions/5210270631.08.2018 · I have a problem about finding a value in from other tensor. The description of this problem is as follows. For example, Input Tensor s_idx = ( 1, 3, 5, 7) e_idx = ( 3, 4, 5, 8) label_s_idx = (2, 2, 3, 6) label_e_idx = (2, 3, 4, 8) In the figure above, the value of s_idx [1] is equal to label_s_idx [2] and the value of e_idx [1] is equal to ...