TensorFlow的图像NCHW与NHWC
import tensorflow as tfx = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]with tf.Session() as sess: a = tf.reshape(x, [2, 2, 3]) a = sess.run(a) print(a) print("---------------...