Skip to content

Commit

Permalink
Remove references to internal symbols in public docstrings.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 379414888
  • Loading branch information
fchollet authored and tensorflower-gardener committed Jun 15, 2021
1 parent c0fb505 commit 0eb1954
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion keras/layers/preprocessing/index_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(self,
oov_token,
vocabulary=None,
invert=False,
output_mode=INT,
output_mode="int",
sparse=False,
pad_to_max_tokens=False,
**kwargs):
Expand Down
2 changes: 1 addition & 1 deletion keras/layers/preprocessing/integer_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def __init__(self,
oov_token=-1,
vocabulary=None,
invert=False,
output_mode=index_lookup.INT,
output_mode="int",
sparse=False,
pad_to_max_tokens=False,
**kwargs):
Expand Down
2 changes: 1 addition & 1 deletion keras/layers/preprocessing/string_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def __init__(self,
vocabulary=None,
encoding=None,
invert=False,
output_mode=index_lookup.INT,
output_mode="int",
sparse=False,
pad_to_max_tokens=False,
**kwargs):
Expand Down
7 changes: 3 additions & 4 deletions keras/layers/preprocessing/text_vectorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,14 @@ class TextVectorization(base_preprocessing_layer.CombinerPreprocessingLayer):

def __init__(self,
max_tokens=None,
standardize=LOWER_AND_STRIP_PUNCTUATION,
split=SPLIT_ON_WHITESPACE,
standardize="lower_and_strip_punctuation",
split="whitespace",
ngrams=None,
output_mode=INT,
output_mode="int",
output_sequence_length=None,
pad_to_max_tokens=False,
vocabulary=None,
**kwargs):

# This layer only applies to string processing, and so should only have
# a dtype of 'string'.
if "dtype" in kwargs and kwargs["dtype"] != tf.string:
Expand Down

0 comments on commit 0eb1954

Please sign in to comment.