def launch(args): if args.no_python and not args.use_env: raise ValueError( "When using the '--no_python' flag," " you must also set the '--use_env' flag." ) run(args)
def main(args=None): logger.warning( "The module torch.distributed.launch is deprecated " "and going to be removed in future." "Migrate to torch.distributed.run" ) args = parse_args(args) run(args)
def main(args=None): args = parse_args(args) run(args)