From 7fa9732b8da34257e3cc8913d697f76be9c4a5e3 Mon Sep 17 00:00:00 2001 From: Zhenyu Tan Date: Wed, 12 Feb 2020 19:49:22 -0800 Subject: [PATCH] Fix the ordering of attributes for indexlookup PiperOrigin-RevId: 294818441 Change-Id: I30e08ce32f9aedf1890b99b5e880e6aaa9cc9b8d --- tensorflow/python/keras/layers/preprocessing/index_lookup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/keras/layers/preprocessing/index_lookup.py b/tensorflow/python/keras/layers/preprocessing/index_lookup.py index 73704d79e18..5566bf7fff6 100644 --- a/tensorflow/python/keras/layers/preprocessing/index_lookup.py +++ b/tensorflow/python/keras/layers/preprocessing/index_lookup.py @@ -62,11 +62,11 @@ class IndexLookup(base_preprocessing_layer.CombinerPreprocessingLayer): there is no cap on the size of the vocabulary. Note that the vocabulary does include OOV buckets, so the effective number of unique values in the vocabulary is `(max_tokens - num_oov_tokens)` when this value is set. - vocabulary: An optional list of vocabulary terms. num_oov_tokens: The number of out-of-vocabulary tokens to use; defaults to 1. If this value is more than 1, OOV inputs are hashed to determine their OOV value; if this value is 0, passing an OOV input will result in a runtime error. + vocabulary: An optional list of vocabulary terms. reserve_zero: Whether to reserve the index 0, which indicates pad values in the Keras masking system. If True, the output of this layer will be in the range `[1...max_tokens+1)`; if False, the output will be in the range