1
在Tensorflow cifar10 tutorial,distorted_input函数中,他们通过这样做来设置浮动图像的形状。他们为什么在tensorflow cifar10教程中设置浮点图像的形状?
float_image.set_shape([height, width, 3])
,但不是在形状已经伸张时,我们装好了distorted_image
distorted_image = tf.random_crop(reshaped_image, [height, width, 3])
为什么我们需要之前,我们把它传递给批处理功能重新设置张量的形状。