Data input to tensorflow

Tensorflow performs data input in two ways:

1. feed_dict , placeholder feed 

2. Read the data in the file and use the data input stream that comes with tensorflow

tf.train.string_input_producer() creates a queue, for example, tfrecords_file creates a queue

 
 
filename_queue = tf.train.string_input_producer(
    tfrecords_filename, num_epoches=100)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324821484&siteId=291194637