Skip to content

Commit

Permalink
Correct imports for Keras 2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocketknight1 committed Jun 7, 2023
1 parent a8d2f4c commit e593919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/modeling_tf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
if parse(tf.__version__).minor >= 13:
from keras import backend as K
from keras.__internal__ import KerasTensor
from keras.engine.base_layer_utils import call_context
from keras.src.engine.base_layer_utils import call_context
elif parse(tf.__version__).minor >= 11:
from keras import backend as K
from keras.engine.base_layer_utils import call_context
Expand Down

0 comments on commit e593919

Please sign in to comment.