how does tensorflow indexing work
There’s github issue #206 to support this nicely, meanwhile you have to resort to verbose work-arounds The first example can be done with tf.select that combines two same-shaped tensors by selecting each element from one or the other tf.reset_default_graph() row_indices = tf.constant([1, 1, 2]) col_indices = tf.constant([0, 2, 3]) x = tf.zeros((3, 4)) sess = … Read more