Fix duplicate progress output. (#6497)

This commit is contained in:
Ujval Misra
2019-12-15 21:53:24 -08:00
committed by Eric Liang
parent 5719a05757
commit e38b25edfb
2 changed files with 8 additions and 2 deletions
+4 -2
View File
@@ -52,7 +52,8 @@ class JupyterNotebookReporter(ProgressReporter):
messages = [
"== Status ==",
memory_debug_str(),
trial_runner.debug_string(delim=delim),
trial_runner.scheduler_alg.debug_string(),
trial_runner.trial_executor.debug_string(),
trial_progress_str(trial_runner.get_trials(), fmt="html"),
trial_errors_str(trial_runner.get_trials(), fmt="html"),
]
@@ -68,7 +69,8 @@ class CLIReporter(ProgressReporter):
messages = [
"== Status ==",
memory_debug_str(),
trial_runner.debug_string(),
trial_runner.scheduler_alg.debug_string(),
trial_runner.trial_executor.debug_string(),
trial_progress_str(trial_runner.get_trials()),
trial_errors_str(trial_runner.get_trials()),
]
+4
View File
@@ -186,6 +186,10 @@ class TrialRunner(object):
self._local_checkpoint_dir,
TrialRunner.CKPT_FILE_TMPL.format(self._session_str))
@property
def scheduler_alg(self):
return self._scheduler_alg
def _validate_resume(self, resume_type):
"""Checks whether to resume experiment.