Merge pull request #44344 from albertvillanova:patch-3

PiperOrigin-RevId: 346073055
Change-Id: I4912a7dc63a6e7bf9d1c05024f643d2d843d25ba
This commit is contained in:
TensorFlower Gardener 2020-12-07 05:49:19 -08:00
commit 9217aed95c

View File

@ -57,8 +57,8 @@ class IndexLookup(base_preprocessing_layer.CombinerPreprocessingLayer):
logic but is not intended to be exported as part of the Keras API.
If desired, the user can call this layer's `adapt()` method on a data set,
which will analyze the data set, determine the frequency of individual string
values, and create a vocabulary from them. This vocabulary can have
which will analyze the data set, determine the frequency of individual
hashable values, and create a vocabulary from them. This vocabulary can have
unlimited size or be capped, depending on the configuration options for this
layer; if there are more unique values in the input than the maximum
vocabulary size, the most frequent terms will be used to create the
@ -394,7 +394,7 @@ class IndexLookup(base_preprocessing_layer.CombinerPreprocessingLayer):
layer, this method will either replace it
Arguments:
vocab: An array of string tokens.
vocab: An array of hashable tokens.
Raises:
ValueError: If there are too many inputs, the inputs do not match, or