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])
爲什麼我們需要之前,我們把它傳遞給批處理功能重新設置張量的形狀。