aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lookup
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-06-20 09:46:07 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-20 09:50:56 -0700
commite35dc9b5ce3e47d148ae7b13804cbedc2b9115da (patch)
treeb9691d04a944e038f255a4510ce72b9a41f56486 /tensorflow/contrib/lookup
parent33b22ec8e4298e3ab39027defde016f745eb12d8 (diff)
Fix off-by-one error in oov bucket docstring
PiperOrigin-RevId: 159572763
Diffstat (limited to 'tensorflow/contrib/lookup')
-rw-r--r--tensorflow/contrib/lookup/lookup_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/lookup/lookup_ops.py b/tensorflow/contrib/lookup/lookup_ops.py
index d5d413c56a..96d2962145 100644
--- a/tensorflow/contrib/lookup/lookup_ops.py
+++ b/tensorflow/contrib/lookup/lookup_ops.py
@@ -86,7 +86,7 @@ def index_table_from_tensor(mapping,
Any lookup of an out-of-vocabulary token will return a bucket ID based on its
hash if `num_oov_buckets` is greater than zero. Otherwise it is assigned the
`default_value`.
- The bucket ID range is `[mapping size, mapping size + num_oov_buckets]`.
+ The bucket ID range is `[mapping size, mapping size + num_oov_buckets - 1]`.
The underlying table must be initialized by calling
`tf.tables_initializer.run()` or `table.init.run()` once.