import tensorflow as tf x = [[1,2,3],[4,5,6]] y = [0,1] z = [1,2] x = tf.constant(x) y = tf.constant(y) z = tf.constant(z) m = x[y,z]
我期待的是 m = [2,6]
m = [2,6]
我可以通过theano或numpy获得结果.我如何使用张量流得到结果?
deep-learning tensorflow
deep-learning ×1
tensorflow ×1