title: How to effectively use tf.bucket_by_sequence_length in Tensorflow?
body: <p>So I'm trying to use tf.bucket_by_sequence_length() from Tensorflow, but can not quite figure out how to make it work.</p>
  
  <p>Basically, it should take sequences (of different lengths) as input and have buckets of sequences as output, but it does not seem to work this way.</p>
  
  <p>From this discussion: 
  <a href="https://github.com/tensorflow/tensorflow/issues/5609" rel="nofollow noreferrer">https://github.com/tensorflow/tensorflow/issues/5609</a>
  I have the impression that it needs a queue in order to feed this function, sequence by sequence. It's not clear though.</p>
  
  <p>Function's documentation can be found here: <a href="https://www.tensorflow.org/versions/r0.12/api_docs/python/contrib.training/bucketing#bucket_by_sequence_length" rel="nofollow noreferrer">https://www.tensorflow.org/versions/r0.12/api_docs/python/contrib.training/bucketing#bucket_by_sequence_length</a></p>