tensorflow - string_input_producer with num_epochs throws OutofRangeError -


this code dequeues elements expected:

import tensorflow tf  tf.session() sess:         queue = tf.train.string_input_producer([str(i) in range(10)])         deq = queue.dequeue()          coord = tf.train.coordinator()         threads = tf.train.start_queue_runners(coord=coord)         in range(3):             print(sess.run([deq])) 

however when add num_epochs string_input_producer fails outofrangeerror:

import tensorflow tf  tf.session() sess:         queue = tf.train.string_input_producer([str(i) in range(10)], num_epochs=1)         deq = queue.dequeue()          coord = tf.train.coordinator()         threads = tf.train.start_queue_runners(coord=coord)         in range(3):             print(sess.run([deq])) 

i'm using tensorflow 0.9

it needed tf.initialize_all_variables().run()


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -