MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / define_flags

Method define_flags

tensorboard/program.py:530–541  ·  view source on GitHub ↗

Configure an argument parser for this subcommand. Flags whose names start with two underscores (e.g., `__foo`) are reserved for use by the runtime and must not be defined by subcommands. Args: parser: An `argparse.ArgumentParser` scoped to this subcommand,

(self, parser)

Source from the content-addressed store, hash-verified

528
529 @abstractmethod
530 def define_flags(self, parser):
531 """Configure an argument parser for this subcommand.
532
533 Flags whose names start with two underscores (e.g., `__foo`) are
534 reserved for use by the runtime and must not be defined by
535 subcommands.
536
537 Args:
538 parser: An `argparse.ArgumentParser` scoped to this subcommand,
539 which this function should mutate.
540 """
541 pass
542
543 @abstractmethod
544 def run(self, flags):

Callers 1

configureMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected