Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion hyperparameter_hunter/compat/keras_optimization_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@
except ModuleNotFoundError:
base_keras_callback = type("PlaceholderBaseKerasCallback", (), {})
BaseKerasInitializer = type("PlaceholderBaseKerasInitializer", (), {})
# when working on cuda10.1, no information will be output, but pass and stop
except Exception as e:
print(e)


def keras_prep_workflow(model_initializer, build_fn, extra_params, source_script):
"""Conduct preparation steps necessary before hyperparameter optimization on a `Keras` model.
Such steps include parsing and modifying `build_fn` to be of the form used by
Expand Down