TypeError: Value passed to parameter 'input' has DataType float64 not in list of allowed values: float16, bfloat16, float32
问题 I have read many questions similar to mine, but all of them are different with mine. for itr in xrange(MAX_ITERATION): train_images, train_annotations = train_dataset_reader.next_batch(batch_size) # train_images=tf.image.convert_image_dtype(train_images,np.float32) # train_annotations=tf.image.convert_image_dtype(train_annotations,np.float32) # print(train_images_.get_shape(),train_annotations_.get_shape()) # train_images=tf.cast(train_images,tf.float32) # train_images = tf.to_float(train