一、tf.reverse()tf.reverse( tensor, axis, name=None)参数:tensor: 需要进行反转的张量,类型必须为其中的一个uint8, int8...(A,perm=[0,2,1,3])Y = tf.reverse(X,axis=[1]) with tf.Session() as sess: print("A") print(A)...])Y=tf.transpose(A,[1,0,2])with tf.Session() as sess: print("original:") print(A) print("transpose...,[0,2,1])Y=tf.transpose(A,[1,0,2])with tf.Session() as sess: print("A[1][1][0]:") print(A[1][1][0...(A,[0,2,1,3])Y=tf.transpose(A,[1,0,3,2]) with tf.Session() as sess: print("A") print(A) print