Skip to content

Commit

Permalink
config startup_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Nov 29, 2023
1 parent 93236a2 commit 832ffb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions returnn/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ def init(config_filename=None, command_line_options=(), config_updates=None, ext
init_backend_engine()
if config.bool("ipython", False):
debug_util.init_ipython_kernel()
if config.typed_value("startup_callback"):
startup_callback = config.typed_value("startup_callback")
startup_callback(config=config)
if need_data():
init_data()
print_task_properties()
Expand Down

0 comments on commit 832ffb7

Please sign in to comment.