Skip to content

Commit

Permalink
Support loading keras 3 nightly (#1286)
Browse files Browse the repository at this point in the history
The nightly version will actually be consider to have a value less that
"3.0.0" by python packaging, as the dev prefix indicates a pre-release.
  • Loading branch information
mattdangerw authored Oct 26, 2023
1 parent aff79b3 commit bbb4b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_nlp/backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
_MULTI_BACKEND = True

# If keras is version 3, use multi-backend keras (our only option).
_IS_KERAS_3 = version.parse(keras.__version__) >= version.parse("3.0.0")
_IS_KERAS_3 = version.parse(keras.__version__) >= version.parse("3.0.0.dev0")
if _IS_KERAS_3:
_MULTI_BACKEND = True

Expand Down

0 comments on commit bbb4b1e

Please sign in to comment.