Fix comment of bucket_by_sequence_length about return type of
authorA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 12 Apr 2018 19:39:48 +0000 (12:39 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 12 Apr 2018 19:42:35 +0000 (12:42 -0700)
element_length_func. Current code requires tf.int32 in order to compare with
buckets_min which is int32.

PiperOrigin-RevId: 192652917

tensorflow/contrib/data/python/ops/grouping.py

index 36591c0..0531f9c 100644 (file)
@@ -108,7 +108,7 @@ def bucket_by_sequence_length(element_length_func,
   fraction of padding in a batch which increases training step efficiency.
 
   Args:
-    element_length_func: function from element in `Dataset` to `tf.int64`,
+    element_length_func: function from element in `Dataset` to `tf.int32`,
       determines the length of the element, which will determine the bucket it
       goes into.
     bucket_boundaries: `list<int>`, upper length boundaries of the buckets.