From bbb4b1e3951f4d4803e73e336e6eab3d82e32d3c Mon Sep 17 00:00:00 2001 From: Matt Watson <1389937+mattdangerw@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:36:36 -0700 Subject: [PATCH] Support loading keras 3 nightly (#1286) 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. --- keras_nlp/backend/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras_nlp/backend/config.py b/keras_nlp/backend/config.py index 9b85907d00..7436012d1c 100644 --- a/keras_nlp/backend/config.py +++ b/keras_nlp/backend/config.py @@ -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