(flags)
| 477 | |
| 478 | |
| 479 | def _should_use_data_server(flags): |
| 480 | if flags.logdir_spec and not flags.logdir: |
| 481 | logger.info( |
| 482 | "Note: --logdir_spec is not supported with --load_fast behavior; " |
| 483 | "falling back to slower Python-only load path. To use the data " |
| 484 | "server, replace --logdir_spec with --logdir." |
| 485 | ) |
| 486 | return False |
| 487 | if not flags.logdir: |
| 488 | # Using some other legacy mode; not supported. |
| 489 | return False |
| 490 | if "://" in flags.logdir and not flags.logdir.startswith("gs://"): |
| 491 | logger.info( |
| 492 | "Note: --load_fast behavior only supports local and GCS (gs://) " |
| 493 | "paths; falling back to slower Python-only load path." |
| 494 | ) |
| 495 | return False |
| 496 | if flags.detect_file_replacement is True: |
| 497 | logger.info( |
| 498 | "Note: --detect_file_replacement=true is not supported with " |
| 499 | "--load_fast behavior; falling back to slower Python-only load " |
| 500 | "path." |
| 501 | ) |
| 502 | return False |
| 503 | return True |
| 504 | |
| 505 | |
| 506 | class TensorBoardSubcommand(metaclass=ABCMeta): |
no outgoing calls
no test coverage detected
searching dependent graphs…