tf.contrib.training.SequenceQueueingStateSaver.next_batch

tf.contrib.training.SequenceQueueingStateSaver.next_batch

The NextQueuedSequenceBatch providing access to batched output data.

Also provides access to the state and save_state methods. The first time this gets called, it additionally prepares barrier reads and creates NextQueuedSequenceBatch / next_batch objects. Subsequent calls simply return the previously created next_batch.

In order to access data in next_batch without blocking, the prefetch_op must have been run at least batch_size times (ideally in a separate thread, or launched via a QueueRunner). After processing a segment in next_batch(), batch.save_state() must be called which is done by the state_saving_rnn. Without this call, the dequeue op associated with the SQSS will not run.

Returns:

A cached NextQueuedSequenceBatch instance.

doc_TensorFlow
2016-10-14 13:07:31
Comments
Leave a Comment

Please login to continue.