Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
divyashreepathihalli committed Nov 7, 2023
1 parent 7ead828 commit 4883a17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions keras_cv/backend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
from tensorflow import keras
elif multi_backend():
import keras

if not hasattr(keras, "__version__") or parse(keras.__version__) < parse(
"3.0"
):
Expand Down
3 changes: 1 addition & 2 deletions keras_cv/backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import json
import os

from packaging.version import parse

_MULTI_BACKEND = False

# Set Keras base dir path given KERAS_HOME env variable, if applicable.
Expand Down Expand Up @@ -43,6 +41,7 @@ def detect_if_tensorflow_uses_keras_3():

def detect_if_keras_3():
import keras

if hasattr(keras, "__version__") and keras.__version__.startswith("3."):
return True
else:
Expand Down

0 comments on commit 4883a17

Please sign in to comment.