Skip to content

Commit f8a5a45

Browse files
authored
export Trial and TrialStatus (#948)
1 parent d8c2f90 commit f8a5a45

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

RELEASE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Release v1.4.2
2+
3+
## Bug fixes
4+
* Could not do `from keras_tuner.engine import trial`. It is now fixed.
5+
16
# Release v1.4.1
27

38
## Bug fixes

keras_tuner/engine/trial.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@
2020

2121
from keras_tuner import protos
2222
from keras_tuner import utils
23+
from keras_tuner.api_export import keras_tuner_export
2324
from keras_tuner.engine import hyperparameters as hp_module
2425
from keras_tuner.engine import metrics_tracking
2526
from keras_tuner.engine import stateful
2627

2728

29+
@keras_tuner_export(["keras_tuner.engine.trial.TrialStatus"])
2830
class TrialStatus:
2931
# The Trial may start to run.
3032
RUNNING = "RUNNING"
@@ -83,6 +85,7 @@ def from_proto(proto):
8385
raise ValueError(f"Unknown status {proto}")
8486

8587

88+
@keras_tuner_export(["keras_tuner.engine.trial.Trial"])
8689
class Trial(stateful.Stateful):
8790
"""The runs with the same set of hyperparameter values.
8891

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.1"
16+
__version__ = "1.4.2"

0 commit comments

Comments
 (0)