Here is the short example of what I am trying to do. How can I access the one tensor based on the values of the other tensor?
import tensorflow as tf
import numpy as np
input_pl = tf.placeholder(tf.int32, shape=[None,2]))
mapping_pl = tf.placeholder(tf.int32, shape=[None,2]))
input1 = np.asarray([[1,1],
[2,2],
[3,3]])
mapping = np.asarray([[0,1],
[0,2],
[2,2]])
with tf.Graph().as_default():
output = .....
# add the 0th row of input1 with 1th row of output
# add the 0th row of input1 with 2th row of output
# add the 2th row of input1 with 2th row of output
sess = tf.Session()
output.eval(sess)
