Skip to content

Commit d949d5f

Browse files
committed
Linting fixes
1 parent 8265a17 commit d949d5f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

keras_cv/models/feature_extractor/clip/clip_processor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
except ImportError:
2424
keras_nlp = None
2525

26+
2627
@keras_cv_export("keras_cv.models.feature_extractor.CLIPProcessor")
2728
class CLIPProcessor:
2829
"""

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)