TF reduction_indices用法
reduction_indices表示按照某个维度进行操作,经常用到2维以内的,三维以上的比较复杂暂不讨论array = np.array([[1,2,3],[4,5,6]])with tf.Session() as sess: print(sess.run(tf.reduce_sum(array, reduction_indices=1))) print(sess.run(tf....