Models: the value of " i " from tf.train.range_input_producer(epoch_size, shuffle=False).dequeue()

Created on 22 Dec 2016  路  1Comment  路  Source: tensorflow/models

Please let us know which model this issue is about (specify the top-level directory)

the ptb language model , in the reader.py
i = tf.train.range_input_producer(epoch_size, shuffle=False).dequeue() x = tf.strided_slice(data, [0, i * num_steps], [batch_size, (i + 1) * num_steps]) x.set_shape([batch_size, num_steps]) y = tf.strided_slice(data, [0, i * num_steps + 1], [batch_size, (i + 1) * num_steps + 1])
every time when uses ' i ' , it comes from the queue newly , so all of ' i ' above are not the same ?!

>All comments

Tensorflow usage questions are better asked on Stackoverflow. Github issues are for bug reports and installation problems.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mostafaghelich picture Mostafaghelich  路  3Comments

sun9700 picture sun9700  路  3Comments

airmak picture airmak  路  3Comments

kamal4493 picture kamal4493  路  3Comments

dsindex picture dsindex  路  3Comments