Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamanehSaadat committed Apr 2, 2024
1 parent 53081a9 commit 67eb3b4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions keras_nlp/utils/preset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,6 @@ def get_tokenizer(layer):
return None


# TODO: delete these:
# def get_task(layer):
# """Get the task from any KerasNLP model or layer."""
# # Avoid circular import.
# from keras_nlp.models.task import Task

# if isinstance(layer, Task):
# return layer
# return None


def recursive_pop(config, key):
"""Remove a key from a nested config object"""
config.pop(key, None)
Expand Down

0 comments on commit 67eb3b4

Please sign in to comment.