Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smitlg committed Mar 19, 2024
1 parent 8265a17 commit d949d5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions keras_cv/models/feature_extractor/clip/clip_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
except ImportError:
keras_nlp = None


@keras_cv_export("keras_cv.models.feature_extractor.CLIPProcessor")
class CLIPProcessor:
"""
Expand Down
5 changes: 3 additions & 2 deletions keras_cv/models/feature_extractor/clip/clip_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ def process_unseen_tokens():
self._bpe_merge_and_update_cache(unseen_tokens)
return self.cache.lookup(flat_tokens)

# If `has_unseen_words == True`, it means not all tokens are in cache,
# we will process the unseen tokens. Otherwise return the cache lookup.
# If `has_unseen_words == True`, it means not all tokens are,
# in cache we will process the unseen tokens. Otherwise
# return the cache lookup.
tokenized_words = tf.cond(
has_unseen_words,
process_unseen_tokens,
Expand Down
2 changes: 1 addition & 1 deletion keras_cv/utils/conditional_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ def assert_keras_nlp_installed(symbol_name):
f"{symbol_name} requires the `keras_nlp` package. "
"Please install the package using "
"`pip install keras_nlp`."
)
)

0 comments on commit d949d5f

Please sign in to comment.