Skip to content

Commit 658ded0

Browse files
committed
Linting fixes
1 parent cfc062d commit 658ded0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

keras_cv/models/feature_extractor/clip/clip_tokenizer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ def process_unseen_tokens():
149149
self._bpe_merge_and_update_cache(unseen_tokens)
150150
return self.cache.lookup(flat_tokens)
151151

152-
# If `has_unseen_words == True`, it means not all tokens are in cache,
153-
# we will process the unseen tokens. Otherwise return the cache lookup.
152+
# If `has_unseen_words == True`, it means not all tokens are,
153+
# in cache we will process the unseen tokens. Otherwise
154+
# return the cache lookup.
154155
tokenized_words = tf.cond(
155156
has_unseen_words,
156157
process_unseen_tokens,

keras_cv/utils/conditional_imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ def assert_keras_nlp_installed(symbol_name):
8383
f"{symbol_name} requires the `keras_nlp` package. "
8484
"Please install the package using "
8585
"`pip install keras_nlp`."
86-
)
86+
)

0 commit comments

Comments
 (0)