MCPcopy Create free account
hub / github.com/FLC777/GLAT / cli_main

Function cli_main

fairseq_cli/train.py:437–450  ·  view source on GitHub ↗
(
    modify_parser: Optional[Callable[[argparse.ArgumentParser], None]] = None
)

Source from the content-addressed store, hash-verified

435
436
437def cli_main(
438 modify_parser: Optional[Callable[[argparse.ArgumentParser], None]] = None
439) -> None:
440 parser = options.get_training_parser()
441 args = options.parse_args_and_arch(parser, modify_parser=modify_parser)
442
443 cfg = convert_namespace_to_omegaconf(args)
444
445 if args.profile:
446 with torch.cuda.profiler.profile():
447 with torch.autograd.profiler.emit_nvtx():
448 distributed_utils.call_main(cfg, main)
449 else:
450 distributed_utils.call_main(cfg, main)
451
452
453if __name__ == "__main__":

Callers 2

train.pyFile · 0.90
train.pyFile · 0.70

Calls 1

Tested by

no test coverage detected