Skip to content

Commit

Permalink
task debug_shell
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Oct 23, 2023
1 parent e587c2b commit b26fa1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion returnn/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# These imports are not directly used here, but make them available, as other code imports them from here.
# noinspection PyUnresolvedReferences
from returnn.util.debug import init_ipython_kernel, init_better_exchook, init_faulthandler
from returnn.util.debug import init_ipython_kernel, init_better_exchook, init_faulthandler, debug_shell

# noinspection PyUnresolvedReferences
from returnn.util.basic import init_thread_join_hack, describe_returnn_version
Expand Down Expand Up @@ -552,6 +552,8 @@ def execute_main_task():
elif task == "initialize_model":
engine.init_train_from_config(config, train_data, dev_data, eval_data)
engine.save_model(config.value("model", "dummy"))
elif task == "debug_shell":
debug_shell(locals(), globals())
else:
raise Exception("unknown task: %r" % (task,))

Expand Down

0 comments on commit b26fa1c

Please sign in to comment.