MCPcopy Create free account
hub / github.com/apple/axlearn / parse_flags

Function parse_flags

axlearn/cli/utils.py:310–317  ·  view source on GitHub ↗
(argv: list[str])

Source from the content-addressed store, hash-verified

308
309
310def parse_flags(argv: list[str]) -> argparse_flags.argparse.Namespace:
311 root = CommandGroup(
312 "root", argv=argv, description="AXLearn: An Extensible Deep Learning Library."
313 )
314 # TODO(markblee): Add top level arguments here, like verbosity.
315 for command_group in _command_group_registry.values():
316 command_group(parent=root)
317 return root.parse_known_args()
318
319
320def main(**kwargs):

Callers

nothing calls this directly

Calls 2

parse_known_argsMethod · 0.95
CommandGroupClass · 0.85

Tested by

no test coverage detected