Tensorflow 3 channel order of color inputs
问题 I'm using tensor flow to process color images with a convolutional neural network. A code snippet is below. My code runs so I think I got the number of channels right. My question is, how do I correctly order the rgb data? Is it in the form rgbrgbrgb or would it be rrrgggbbb? Presently I am using the latter. Thanks. Any help would be appreciated. c_output = 2 c_input = 784 * 3 def weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1) return tf.Variable(initial) def bias