Skip to content

Commit

Permalink
update name_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
divyashreepathihalli committed Nov 18, 2023
1 parent bc4341e commit dca3664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras_cv/backend/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
from keras_cv.backend.config import keras_3, multi_backend

if keras_3():
from keras import ops
from keras.ops import * # noqa: F403, F401
from keras.preprocessing.image import smart_resize # noqa: F403, F401
name_scope = ops.name_scope
from keras_cv.backend import keras
name_scope = keras.name_scope
else:
try:
from keras.src.ops import * # noqa: F403, F401
Expand Down

0 comments on commit dca3664

Please sign in to comment.