Skip to content

Commit

Permalink
Update simple_cerebros_random_search.py
Browse files Browse the repository at this point in the history
  • Loading branch information
david-thrower committed Jun 12, 2024
1 parent 2b6ccc4 commit 4c0a279
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,14 @@ def run_random_search(self):

def get_best_model(self):
best_model_path = self.best_model_path
# best_model =\
# tf.keras.models.clone_model(
# tf.keras.models.load_model(best_model_path, custom_objects={"TernaryDenseLayer": units.units.TernaryDenseLayer}))
best_model =\
tf.keras.models.clone_model(
tf.keras.models.load_model(best_model_path))
# best_model = tf.keras.models.load_model(self.best_model_path)
tf.keras.models.load_model(
self.best_model_path,
custom_objects=\
{"TernaryDenseLayer": units.units.TernaryDenseLayer})
return best_model

# ->
Expand Down

0 comments on commit 4c0a279

Please sign in to comment.