Tensorflow:UnimplementedError: Cast string to int32 is not supported
I am new to Tensorflow. Here is the code: def get_batch(image,label,new_height,new_width,batch_size,capacity): image=tf.cast(image,tf.string) label=tf.cast(image,tf.int32) input_queue= tf.train.slice_input_producer([image,label]) label=input_queue[1] image_contents=tf.read_file(input_queue[0]) image=tf.image.decode_jpeg(image_contents,channels=3) image=tf.image.resize_images(image,(new_height,new_width)) image=tf.image.per_image_standardization(image) image_batch,label_batch=tf.train.batch([image,label],batch_size=batch_size,capacity=capacity,num_threads=8) label_batch=tf.reshape(label_batch,[
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.