Skip to content

Commit 52f9e2f

Browse files
authored
Export more APIs for AutoKeras (#954)
1 parent 2f5d31c commit 52f9e2f

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

RELEASE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Release v1.4.4
2+
3+
## Bug fixes
4+
* Could not do `from keras_tuner.engine.hyperparameters import serialize`. It is now fixed.
5+
* Could not do `from keras_tuner.engine.hyperparameters import deserialize`. It is now fixed.
6+
* Could not do `from keras_tuner.engine.tuner import maybe_distribute`. It is now fixed.
7+
18
# Release v1.4.3
29

310
## Bug fixes

keras_tuner/engine/hyperparameters/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
from keras_tuner import utils
16+
from keras_tuner.api_export import keras_tuner_export
1617
from keras_tuner.backend import keras
1718
from keras_tuner.engine.hyperparameters import hp_types
1819
from keras_tuner.engine.hyperparameters.hp_types import Boolean
@@ -31,9 +32,11 @@
3132
ALL_CLASSES = {cls.__name__: cls for cls in OBJECTS}
3233

3334

35+
@keras_tuner_export("keras_tuner.engine.hyperparameters.deserialize")
3436
def deserialize(config):
3537
return utils.deserialize_keras_object(config, module_objects=ALL_CLASSES)
3638

3739

40+
@keras_tuner_export("keras_tuner.engine.hyperparameters.serialize")
3841
def serialize(obj):
3942
return utils.serialize_keras_object(obj)

keras_tuner/engine/tuner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ def maybe_compute_model_size(model):
465465
return 0
466466

467467

468+
@keras_tuner_export("keras_tuner.engine.tuner.maybe_distribute")
468469
@contextlib.contextmanager
469470
def maybe_distribute(distribution_strategy):
470471
"""Distributes if distribution_strategy is set."""

keras_tuner/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515
# Unique source of truth for the version number.
16-
__version__ = "1.4.3"
16+
__version__ = "1.4.4.dev0"

0 commit comments

Comments
 (0)