Skip to content

Commit 0435394

Browse files
authored
Print message explaining that --load_fast does not support --logdir_spec (#5099)
This changes the program to print a message that explicitly indicates `--logdir_spec` is unsupported with `--load_fast` behavior. See #4802
1 parent e7b2551 commit 0435394

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tensorboard/program.py

+9
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,15 @@ def _make_data_ingester(self):
433433
sys.exit(1)
434434

435435
if flags.load_fast == "auto" and _should_use_data_server(flags.logdir):
436+
if flags.logdir_spec and not flags.logdir:
437+
logger.info(
438+
"Warning: --logdir_spec is not supported with --load_fast "
439+
+ "behavior; falling back to multiplexer. To use the data "
440+
+ "server, replace --logdir_spec with --logdir."
441+
)
442+
ingester = local_ingester.LocalDataIngester(flags)
443+
ingester.start()
444+
return ingester
436445
try:
437446
ingester = self._start_subprocess_data_ingester()
438447
sys.stderr.write(_DATA_SERVER_ADVISORY_MESSAGE)

0 commit comments

Comments
 (0)